6502 reset behaviour
Posted: Mon Nov 04, 2019 5:42 pm
Has there ever been any discussion on the behaviour of the RESET interrupt on the 6502? I had always expected it to behave exactly like the IRQ and NMI interrupts (albeit with stack reads instead of writes), but Visual6502 shows some strange things.
Here we see A getting corrupted:
http://visual6502.org/JSSim/expert.html ... es,irq,nmi
Here we lower /RES half a cycle later; this time A isn't corrupted, but PC goes through some crazy values on the way:
http://visual6502.org/JSSim/expert.html ... es,irq,nmi
Don't remember reading anything about this on here in the past, but I assume by now it's been reverse engineered and we know exactly what's going on. Took me by surprise though.
Here we see A getting corrupted:
http://visual6502.org/JSSim/expert.html ... es,irq,nmi
Here we lower /RES half a cycle later; this time A isn't corrupted, but PC goes through some crazy values on the way:
http://visual6502.org/JSSim/expert.html ... es,irq,nmi
Don't remember reading anything about this on here in the past, but I assume by now it's been reverse engineered and we know exactly what's going on. Took me by surprise though.