From 1bde438a57e80326e36534e12f03c645fc33f424 Mon Sep 17 00:00:00 2001 From: starcells Date: Mon, 4 May 2026 16:01:22 +0800 Subject: [PATCH] 202605041601 --- tests/r8_test.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/r8_test.cc b/tests/r8_test.cc index 7948314..bfc942c 100644 --- a/tests/r8_test.cc +++ b/tests/r8_test.cc @@ -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); }