202608260013

This commit is contained in:
starcells committed 2026-08-26 00:13:59 +08:00
1 parent 3dbe5cb4aa
commit 18073acd2c
1 file changed
+11
+11
View File
@@ -156,6 +156,17 @@ r8asm::ast::expand_node_to_ins(const ast_node &node) {
/*
XOR
children[0]: argument
WARNING: argument bigger than ((1<<CELL_SIZE)-1) will be cut off
e.g.
children[0] -> 5(0b101)
when define CELL_SIZE 2, only the last 2 bit will be noticed,
and 5 means 0b01(1) here.
then the node will be expanded like this:
flb
ror
ror
*/
data d = expand_node_to_data(node.children[0]);
for (auto i = 0; i < CELL_SIZE; i++) {