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 {
CLS, // CLS
RET, // RET
CALL, // CALL addr
@ -443,7 +442,6 @@ struct Assembler {
case 0x7000: // 0x7XNN Adds NN to VX.
case 0x8000:
switch (opcode) {
case 0x0000: // 0x8XY0 Sets VX to the value of VY.
case 0x0001: // 0x8XY1 Sets VX to VX or VY.
case 0x0002: // 0x8XY2 Sets VX to VX and VY.
@ -456,11 +454,8 @@ struct Assembler {
default: // unhandled for some reason
writefln("unknown opcode: 0x%x", opcode);
break;
}
break;
case 0x9000: // 0x9XYO Skips the next instruction if VX doesn't equal VY.
case 0xA000: // 0xANNN Sets I to the address NNN.
case 0xB000: // 0xBNNN Jumps to the address NNN plus V0.
@ -477,7 +472,7 @@ struct Assembler {
switch (opcode & 0x000F) {
case 0x000E: // 0xEX9E Skips the next instruction if the key stored in VX is pressed.
case 0x0001: // 0xEXA1 Skips the next instruction if the key stored in VX isn't pressed.
default: //unhandled for some reason
default: // unhandled for some reason
writefln("unknown opcode: 0x%x", opcode);
break;
}