The "status" member has uninitialized bits. When I noticed that a static instance of mos6502 would work as expected but one on the stack or heap would show subtle differences in program execution (static data=bss), it pointed me to the bug.
Otherwise, this is a very nice and efficient piece of code. Using it for my second project. I love it!
The "status" member has uninitialized bits. When I noticed that a static instance of mos6502 would work as expected but one on the stack or heap would show subtle differences in program execution (static data=bss), it pointed me to the bug.
Otherwise, this is a very nice and efficient piece of code. Using it for my second project. I love it!