Permalink
Browse files

Don't bother annotating the reserved opcode.

  • Loading branch information...
Brandon Mitchell
Brandon Mitchell committed Apr 9, 2012
1 parent 274affd commit e204855a955a31f79e310756e8400c799fab9933
Showing with 1 addition and 8 deletions.
  1. +0 −6 src/cpu.c
  2. +1 −2 src/cpu.h
View
@@ -135,12 +135,6 @@ special(struct cpu_t *cpu, word_t i)
word_t opcode = VAL_A(i);
switch(opcode) {
- case RESERVED:
- assert(NULL);
- fatal("Invalid opcode 0x%x (PC: 0x%x SP: 0x%x)\n",
- opcode, cpu->pc, cpu->sp);
- break;
-
case JSR:
cpu->sp--; /* NOTE: allow wrap around. */
cpu->memory[cpu->sp] = cpu->pc + 1;
View
@@ -35,8 +35,7 @@ enum opcode_t {
};
enum special_t {
- RESERVED,
- JSR
+ JSR = 0x1
};
enum value_t {

0 comments on commit e204855

Please sign in to comment.