Skip to content

Commit

Permalink
Clean up some TODOs in 6502
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Jul 17, 2014
1 parent a630e5b commit 88e550b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions 6502.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
case 0xfc34:
case 0xfc38:
case 0xfc3c:
// TODO: sid chip (really?);
// SID Chip.
break;
case 0xfc40:
case 0xfc44:
Expand All @@ -127,7 +127,7 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
case 0xfc54:
case 0xfc58:
case 0xfc5c:
// TODO: ide
// IDE
break;
case 0xfe00:
case 0xfe04:
Expand Down Expand Up @@ -232,7 +232,7 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
case 0xfc34:
case 0xfc38:
case 0xfc3c:
// TODO: sid chip (really?);
// SID chip
break;
case 0xfc40:
case 0xfc44:
Expand All @@ -242,7 +242,7 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
case 0xfc54:
case 0xfc58:
case 0xfc5c:
// TODO: ide
// IDE
break;
case 0xfe00:
case 0xfe04:
Expand Down Expand Up @@ -365,7 +365,6 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
for (i = 0; i < 128; ++i) this.memStat[i] = this.memStat[256 + i] = 1;
for (i = 128; i < 256; ++i) this.memStat[i] = this.memStat[256 + i] = 2;
for (i = 0; i < 128; ++i) this.memLook[i] = this.memLook[256 + i] = 0;
/* TODO: Model A support here */
for (i = 48; i < 128; ++i) this.memLook[256 + i] = 16384;
for (i = 128; i < 192; ++i) this.memLook[i] = this.memLook[256 + i] = this.romOffset - 0x8000;
for (i = 192; i < 256; ++i) this.memLook[i] = this.memLook[256 + i] = this.osOffset - 0xc000;
Expand Down Expand Up @@ -554,7 +553,6 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
}
this.incpc();
opcodes.runInstruction(this, opcode);
// TODO: timetolive
if (this.takeInt) {
this.takeInt = false;
this.push(this.pc >>> 8);
Expand All @@ -564,8 +562,6 @@ define(['utils', '6502.opcodes', 'via', 'acia', 'serial', 'fdc'],
this.p.i = true;
this.polltime(7);
}
// TODO: otherstuff
// TODO: tube
if (this.nmi) {
this.push(this.pc >>> 8);
this.push(this.pc & 0xff);
Expand Down

0 comments on commit 88e550b

Please sign in to comment.