202605041601
This commit is contained in:
1 parent
2732990e75
commit
1bde438a57
1 file changed
+11
-3
+11
-3
@@ -10,12 +10,20 @@ int main() {
|
||||
R8Instruction{rot8_bytecode::INP},
|
||||
// To make clang-format distribute all instructions into diffirent
|
||||
// lines.
|
||||
{r8asm_macro("STEP"), {15}},
|
||||
{rot8_bytecode::STP},
|
||||
{r8asm_builtin::XOR, 255},
|
||||
{rot8_bytecode::BTP},
|
||||
{r8asm_builtin::LOOP},
|
||||
{rot8_bytecode::BIZ},
|
||||
{rot8_bytecode::FLB},
|
||||
{rot8_bytecode::RNZ},
|
||||
{rot8_bytecode::ROR},
|
||||
{rot8_bytecode::OUT},
|
||||
{r8asm_builtin::ENDLOOP},
|
||||
};
|
||||
auto out_tape = r8asm_tape_out(expand_macros(ins));
|
||||
|
||||
// for (auto i : out_tape)
|
||||
// std::cout << ROT8_BC_TO_CHAR(i);
|
||||
for (auto i : out_tape)
|
||||
std::cout << ROT8_BC_TO_CHAR(i);
|
||||
return (0);
|
||||
}
|
||||
Reference in new issue
Block a user