2 Pointer in register overwritten in the z80 backend when using --reserve-regs-iy.
18 static struct node nodes
[MAX_NODES
];
19 uint16_t node_freelist
= 0;
21 atom
alloc_node(atom lhsval
, atom rhsval
)
23 atom a
= node_freelist
;
24 node_freelist
= nodes
[a
].lhs
;
25 nodes
[a
].lhs
= lhsval
;
26 nodes
[a
].rhs
= rhsval
;
34 atom a
= alloc_node(0xa5a5, 0x5a5a);
36 ASSERT (nodes
[0].lhs
== 0xa5a5);
37 ASSERT (nodes
[0].rhs
== 0x5a5a);
38 ASSERT (node_freelist
== 23);