Skip to content

Commit

Permalink
remove load_memory from cpu and call seperately to load cart mem
Browse files Browse the repository at this point in the history
  • Loading branch information
dronavallipranav committed Aug 18, 2023
1 parent 24f5a39 commit e44e751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,4 @@ void initCPU(Z80_State *cpu)
exit(1);
}
init_mmu(cpu->mmu);
// load_memory(cpu->mmu, "/Users/pranavdronavalli/Downloads/gb-test-roms-master/cpu_instrs/individual/03-op sp,hl.gb");
}
5 changes: 3 additions & 2 deletions src/testInstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
#include <cpu.h>
#include <stdio.h>

int main(){
int main()
{
Z80_State cpu;
initCPU(&cpu);
load_memory(cpu.mmu, "/Users/pranavdronavalli/Downloads/gb-test-roms-master/cpu_instrs/individual/01-special.gb");
init_opcode_table();
execute_cycle(&cpu);

}

0 comments on commit e44e751

Please sign in to comment.