1
0
mirror of https://github.com/zellyn/go6502.git synced 2024-06-15 18:29:47 +00:00

Added bug for proper on-cycle reads and writes.

This commit is contained in:
Zellyn Hunter 2013-02-27 22:44:33 -08:00
parent a8a8074b63
commit 2620c1dee1

View File

@ -8,6 +8,10 @@ package cpu
// read twice on 65C02. See
// http://en.wikipedia.org/wiki/MOS_Technology_6502#Bugs_and_quirks.
// BUG(zellyn): Instructions should do many more reads. See
// http://users.telenet.be/kim1-6502/6502/hwman.html#AA and/or table
// 4.1 of "Understanding the Apple II".
// immediate2 performs 2-opcode, 2-cycle immediate mode instructions.
func immediate2(f func(*cpu, byte)) func(*cpu) {
return func(c *cpu) {