Fixes #10 - Implement the BRK instruction

This commit is contained in:
Stefan Arentz 2016-11-13 20:09:47 -05:00
parent 85c8204c1b
commit b0972be3c8
2 changed files with 2 additions and 2 deletions

1
cpu.h
View File

@ -74,7 +74,6 @@ void cpu_add_iom(struct cpu_t *cpu, uint16_t start, uint16_t length, void *obj,
void cpu_trace(struct cpu_t *cpu, uint8_t trace);
void cpu_reset(struct cpu_t *cpu);
void cpu_brk(struct cpu_t *cpu);
void cpu_irq(struct cpu_t *cpu);
void cpu_nmi(struct cpu_t *cpu);

3
ins.c
View File

@ -214,7 +214,8 @@ static void bvs(struct cpu_t *cpu, uint8_t oper) {
/* BRK */
static void brk(struct cpu_t *cpu) {
// TODO
cpu->state.b = 1;
cpu_irq(cpu);
}
/* CLx */