Added some comments for missing instruction names

This commit is contained in:
Will Angenent 2018-05-14 18:51:38 +01:00
parent 1324460d9d
commit a5441b2615

View File

@ -717,31 +717,31 @@ func Run(showInstructions bool, breakAddress *uint16, disableFirmwareWait bool,
branch("BEQ", isZ()) branch("BEQ", isZ())
// Flag setting // Flag setting
case 0x18: case 0x18: // CLC
setC(false) setC(false)
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2
case 0x38: case 0x38: // SEC
setC(true) setC(true)
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2
case 0x58: case 0x58: // CLI
State.P &= ^CpuFlagI State.P &= ^CpuFlagI
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2
case 0x78: case 0x78: // SEI
State.P |= CpuFlagI State.P |= CpuFlagI
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2
case 0xb8: case 0xb8: // CLV
State.P &= ^CpuFlagV State.P &= ^CpuFlagV
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2
case 0xd8: case 0xd8: // CLD
State.P &= ^CpuFlagD State.P &= ^CpuFlagD
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2
case 0xf8: case 0xf8: //SED
State.P |= CpuFlagD State.P |= CpuFlagD
State.PC++ State.PC++
system.FrameCycles += 2 system.FrameCycles += 2