202608260013
This commit is contained in:
1 parent
3dbe5cb4aa
commit
18073acd2c
1 file changed
+11
@@ -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++) {
|
||||
|
||||
Reference in new issue
Block a user