This commit is contained in:
Robin Hübner 2018-10-01 00:21:59 +02:00
parent ead5f8c370
commit 31d3f9f31e
1 changed files with 1 additions and 6 deletions

View File

@ -351,7 +351,6 @@ struct Assembler {
enum OpCode { enum OpCode {
CLS, // CLS CLS, // CLS
RET, // RET RET, // RET
CALL, // CALL addr CALL, // CALL addr
@ -443,7 +442,6 @@ struct Assembler {
case 0x7000: // 0x7XNN Adds NN to VX. case 0x7000: // 0x7XNN Adds NN to VX.
case 0x8000: case 0x8000:
switch (opcode) { switch (opcode) {
case 0x0000: // 0x8XY0 Sets VX to the value of VY. case 0x0000: // 0x8XY0 Sets VX to the value of VY.
case 0x0001: // 0x8XY1 Sets VX to VX or VY. case 0x0001: // 0x8XY1 Sets VX to VX or VY.
case 0x0002: // 0x8XY2 Sets VX to VX and VY. case 0x0002: // 0x8XY2 Sets VX to VX and VY.
@ -456,11 +454,8 @@ struct Assembler {
default: // unhandled for some reason default: // unhandled for some reason
writefln("unknown opcode: 0x%x", opcode); writefln("unknown opcode: 0x%x", opcode);
break; break;
} }
break; break;
case 0x9000: // 0x9XYO Skips the next instruction if VX doesn't equal VY. case 0x9000: // 0x9XYO Skips the next instruction if VX doesn't equal VY.
case 0xA000: // 0xANNN Sets I to the address NNN. case 0xA000: // 0xANNN Sets I to the address NNN.
case 0xB000: // 0xBNNN Jumps to the address NNN plus V0. case 0xB000: // 0xBNNN Jumps to the address NNN plus V0.