2 A still-needed pointer in register pair hl was overwritten when hl was used for a stack access on gbz80.
10 typedef struct _BankPtr
16 const BankPtr scene_bank_ptrs
[] = {{0x06, 0x3C53}};
18 void TestFn2(unsigned char i
)
23 void TestFn(unsigned int index
)
26 unsigned int data_ptr
;
28 bank
= scene_bank_ptrs
[index
].bank
;
29 data_ptr
= scene_bank_ptrs
[index
].offset
;
31 /* This section doesn't matter but the bug doesn't trigger without it */
36 ASSERT(data_ptr
== 0x3C53);