From 31d3f9f31e0040aba46465fa9a0579f7757acc8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCbner?= Date: Mon, 1 Oct 2018 00:21:59 +0200 Subject: [PATCH] eh --- source/app.d | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/app.d b/source/app.d index 3112430..415de23 100644 --- a/source/app.d +++ b/source/app.d @@ -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; }