mirror of
https://github.com/freewilll/apple2-go.git
synced 2025-01-15 09:30:20 +00:00
Added some comments for missing instruction names
This commit is contained in:
parent
1324460d9d
commit
a5441b2615
14
cpu/cpu.go
14
cpu/cpu.go
@ -717,31 +717,31 @@ func Run(showInstructions bool, breakAddress *uint16, disableFirmwareWait bool,
|
||||
branch("BEQ", isZ())
|
||||
|
||||
// Flag setting
|
||||
case 0x18:
|
||||
case 0x18: // CLC
|
||||
setC(false)
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
case 0x38:
|
||||
case 0x38: // SEC
|
||||
setC(true)
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
case 0x58:
|
||||
case 0x58: // CLI
|
||||
State.P &= ^CpuFlagI
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
case 0x78:
|
||||
case 0x78: // SEI
|
||||
State.P |= CpuFlagI
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
case 0xb8:
|
||||
case 0xb8: // CLV
|
||||
State.P &= ^CpuFlagV
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
case 0xd8:
|
||||
case 0xd8: // CLD
|
||||
State.P &= ^CpuFlagD
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
case 0xf8:
|
||||
case 0xf8: //SED
|
||||
State.P |= CpuFlagD
|
||||
State.PC++
|
||||
system.FrameCycles += 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user