Search found 3 matches

by flok
Thu Mar 03, 2022 11:23 am
Forum: Emulation and Simulation
Topic: not understanding Klaus' test
Replies: 5
Views: 4066

Re: not understanding Klaus' test

Very cool: it now runs upto test $f0, so all is fine. Pretty quick (I think) for a python program (with pypy): 4.6 seconds om a "11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz" laptop.
by flok
Thu Mar 03, 2022 10:41 am
Forum: Emulation and Simulation
Topic: not understanding Klaus' test
Replies: 5
Views: 4066

Re: not understanding Klaus' test

John West wrote:
It looks like you're calculating A - operand - carry instead of A - operand - (not carry). SBC with an operand of 0 and carry set should not change A, whether it's in decimal mode or not.
Oh indeed!
Thanks
by flok
Thu Mar 03, 2022 10:23 am
Forum: Emulation and Simulation
Topic: not understanding Klaus' test
Replies: 5
Views: 4066

not understanding Klaus' test

Hi,

I'm running Klaus' excellent functional test against my emulator.
At test 2Ah (42) something goes wrong:


32f4[f8], 2a, a: 2a, x: 0e, y: ff, flags: 71, sp: 01ff, BS: 00 SED
32f5[a2], 2a, a: 2a, x: 0e, y: ff, flags: 79, sp: 01ff, BS: 00 LDX #$0e
32f7[a0], 2a, a: 2a, x: 0e, y: ff, flags: 79, sp ...