[err]202505160014

This commit is contained in:
starcells committed 2026-05-16 00:14:04 +08:00
1 parent 7cf22b6773
commit 5eb17bf557
3 files changed
+30 -7

No files matched your search

+27 -4
View File
@@ -11,10 +11,33 @@ btp %1
%macro and 3
.anchor before_and
%repeat _UNIT_MAX
out
out
.tp %1
%repeat _UNIT_SIZE
biz
.tp %2
biz
.tp %3
flb
biz
flb
rnz
.tp %2
rnz
.tp %1
rnz
ror
.tp %2
ror
.tp %3
ror
.tp %1
%endrepeat
.tp before_and
%endmacro
%endrepeat
.tp before_and
%endmacro
out
out
+2 -2
View File
@@ -4,7 +4,7 @@
#include "r8asm/r8asm_core.hh"
#include <list>
#include <map>
#include <stack>
#include <queue>
#include <string>
#include <utility>
#include <vector>
@@ -15,7 +15,7 @@ typedef std::list<std::vector<std::string>>::iterator r8asm_src_point;
struct R8Src {
std::list<std::vector<std::string>> raw_src;
std::stack<std::pair<r8asm_src_point, r8asm_src_point>> codeblocks;
std::queue<std::pair<r8asm_src_point, r8asm_src_point>> codeblocks;
void preprocess();
};
+1 -1
View File
@@ -108,7 +108,7 @@ r8asm_translate_single_ins(std::vector<std::string> const raw_ins) {
void R8Src::preprocess() {
std::vector<R8Instruction> tmp_codeblock;
while (!this->codeblocks.empty()) {
auto i = this->codeblocks.top();
auto i = this->codeblocks.front();
this->codeblocks.pop();
tmp_codeblock.clear();
auto raw_codeblock =