anotherlin/z80emu

PC value in context

iddq opened this issue · 1 comments

iddq commented

Hello,

Can you please help me why I got 0x0001 as PC value? Thank you!

https://github.com/iddq/z80emu/blob/master/tnc2.c

 ./tnc2  | head -10
Testing "testfiles/TNC2118A.ROM"...
out: 223 value: . 2, PC: 0x1
out: 223 value: U 85, PC: 0x1
out: 223 value: . 2, PC: 0x1
 in: 223 value: 2
out: 223 value: . 2, PC: 0x1
out: 223 value: . 253, PC: 0x1
out: 223 value: . 2, PC: 0x1
 in: 223 value: 2
 in: 221 value: 0
iddq commented

can we use state->pc in emulate function instead of a local pc variable?