working on mooneye test suite
This commit is contained in:
@ -18,7 +18,7 @@ FILE *log;
|
||||
void cpu_init() {
|
||||
ctx.regs.a = 0x01;
|
||||
ctx.regs.f = 0xB0;
|
||||
ctx.regs.b = 0x00;
|
||||
ctx.regs.b = 0x19;
|
||||
ctx.regs.c = 0x13;
|
||||
ctx.regs.d = 0x00;
|
||||
ctx.regs.e = 0xD8;
|
||||
@ -54,6 +54,10 @@ static void execute() {
|
||||
}
|
||||
|
||||
bool cpu_step() {
|
||||
|
||||
if(ctx.regs.pc == 0x4348) {
|
||||
printf("made it!\n");
|
||||
}
|
||||
|
||||
if(!ctx.halted) {
|
||||
u16 pc = ctx.regs.pc;
|
||||
|
Reference in New Issue
Block a user