Skip to content

Commit

Permalink
Passing more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scottferg committed Jul 29, 2012
1 parent 211d612 commit 5c50d9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions 6502_test.go
Expand Up @@ -171,11 +171,11 @@ func verifyCpuState(pc int, c *Cpu, test *testing.T) {
case 0xCE00:
checkRegisters(pc, c, 0xFF, 0xFB, 0x01, 0xA5, 0xFB, test)
case 0xCE33:
checkRegisters(pc, c, 0x69, 0x80, 0x01, 0x27, 0xFB, test)
checkRegisters(pc, c, 0x69, 0x80, 0x01, 0x27, 0x80, test)
case 0xCE5F:
checkRegisters(pc, c, 0xCE, 0x80, 0x01, 0x27, 0xFB, test)
checkRegisters(pc, c, 0xCE, 0x80, 0x01, 0x27, 0x80, test)
case 0xCE9D:
checkRegisters(pc, c, 0x00, 0x77, 0x69, 0x27, 0xFB, test)
checkRegisters(pc, c, 0x00, 0x77, 0x69, 0x27, 0x80, test)
case 0xCEF6:
checkRegisters(pc, c, 0xFF, 0x55, 0x69, 0xA5, 0xFB, test)
case 0xCF20:
Expand Down
2 changes: 1 addition & 1 deletion machine.go
Expand Up @@ -19,7 +19,7 @@ var (
rom Rom
video Video

breakpoint = 0xCE15
breakpoint = 0xCE01
terminate = 0xCE33
)

Expand Down
3 changes: 1 addition & 2 deletions nestest.log
Expand Up @@ -844,7 +844,6 @@ CDFA 85 01 STA $01 = FF A:FF X:FB Y:01 P:A5 SP:FB CYC:34
CDFC BA TSX A:FF X:FB Y:01 P:A5 SP:FB CYC: 8 SL:258
CDFD 8E FF 07 STX $07FF = FB A:FF X:FB Y:01 P:A5 SP:FB CYC: 14 SL:258
CE00 EA NOP A:FF X:FB Y:01 P:A5 SP:FB CYC: 26 SL:258

CE01 A2 80 LDX #$80 A:FF X:FB Y:01 P:A5 SP:FB CYC: 32 SL:258
CE03 9A TXS A:FF X:80 Y:01 P:A5 SP:FB CYC: 38 SL:258
CE04 A9 33 LDA #$33 A:FF X:80 Y:01 P:A5 SP:80 CYC: 44 SL:258
Expand All @@ -871,7 +870,6 @@ CE28 C9 69 CMP #$69 A:69 X:80 Y:01 P:25 SP:80 CYC:19
CE2A D0 03 BNE $CE2F A:69 X:80 Y:01 P:27 SP:80 CYC:200 SL:258
CE2C 4C 33 CE JMP $CE33 A:69 X:80 Y:01 P:27 SP:80 CYC:206 SL:258
CE33 EA NOP A:69 X:80 Y:01 P:27 SP:80 CYC:215 SL:258

CE34 A2 80 LDX #$80 A:69 X:80 Y:01 P:27 SP:80 CYC:221 SL:258
CE36 9A TXS A:69 X:80 Y:01 P:A5 SP:80 CYC:227 SL:258
CE37 20 3D CE JSR $CE3D A:69 X:80 Y:01 P:A5 SP:80 CYC:233 SL:258
Expand Down Expand Up @@ -1017,6 +1015,7 @@ CF40 C9 AA CMP #$AA A:AA X:55 Y:69 P:A4 SP:FB CYC:25
CF42 D0 03 BNE $CF47 A:AA X:55 Y:69 P:27 SP:FB CYC:260 SL:-1
CF44 4C 4B CF JMP $CF4B A:AA X:55 Y:69 P:27 SP:FB CYC:266 SL:-1
CF4B EA NOP A:AA X:55 Y:69 P:27 SP:FB CYC:275 SL:-1

CF4C 24 01 BIT $01 = FF A:AA X:55 Y:69 P:27 SP:FB CYC:281 SL:-1
CF4E 38 SEC A:AA X:55 Y:69 P:E5 SP:FB CYC:290 SL:-1
CF4F A9 01 LDA #$01 A:AA X:55 Y:69 P:E5 SP:FB CYC:296 SL:-1
Expand Down

0 comments on commit 5c50d9c

Please sign in to comment.