Skip to content

Commit

Permalink
More cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Sep 14, 2024
1 parent 9942351 commit dbadb76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 75 deletions.
23 changes: 8 additions & 15 deletions tests/test-suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,20 @@ const processor = fake6502();
const IRQ_ROUTINE_START = 0xff48;
const RTS_OPCODE = 0x60;
const NOP_OPCODE = 0xea;

// prettier-ignore
const IRQ_ROUTINE = [
0x48, // PHA
0x8a, // TXA
0x48, // PHA
0x98, // TYA
0x48, // PHA
0xba, // TSX
0xbd,
0x04,
0x01, // LDA $0104,X
0x29,
0x10, // AND #$10
0xf0,
0x03, // BEQ $03
0x6c,
0x16,
0x03, // JMP ($0316)
0x6c,
0x14,
0x03, // JMP ($0314)
0xbd, 0x04, 0x01, // LDA $0104,X
0x29, 0x10, // AND #$10
0xf0, 0x03, // BEQ $03
0x6c, 0x16, 0x03, // JMP ($0316)
0x6c, 0x14, 0x03 // JMP ($0314)
];

async function setup(filename) {
Expand Down Expand Up @@ -93,8 +87,7 @@ processor.debugInstruction.add((addr) => {
handlePrint();
break;
case 0xe16f:
handleLoad();
return true;
return handleLoad();
case 0x8000:
case 0xa474:
handleError();
Expand Down
60 changes: 0 additions & 60 deletions tests/test-web.js

This file was deleted.

0 comments on commit dbadb76

Please sign in to comment.