use the program bank register when fetching the byte representing the instruction to execute next

This commit is contained in:
Preston Skupinski 2011-05-09 00:38:15 -04:00
parent aa08ce700d
commit 81767302e4

2
cpu.js
View File

@ -140,7 +140,7 @@ function CPU_65816() {
var executing = true;
while(executing) {
var b = this.mmu.read_byte(this.r.pc);
var b = this.mmu.read_byte_long(this.r.pc, this.r.pbr);
this.r.pc++;
// If we reach the end of the code then stop everything.