mirror of
https://github.com/pskupinski/65816.js.git
synced 2024-06-27 00:29:27 +00:00
quick fix to a silly mistake
This commit is contained in:
parent
4828d9c1b1
commit
a5d690e9cb
6
cpu.js
6
cpu.js
|
@ -107,7 +107,7 @@ var MMU = {
|
||||||
byte_buffer.push(raw_hex[i]);
|
byte_buffer.push(raw_hex[i]);
|
||||||
if(byte_buffer.length===2) {
|
if(byte_buffer.length===2) {
|
||||||
this.store_byte(loc, parseInt(byte_buffer[0]+byte_buffer[1], "16"));
|
this.store_byte(loc, parseInt(byte_buffer[0]+byte_buffer[1], "16"));
|
||||||
loc += 8;
|
loc++;
|
||||||
byte_buffer = [];
|
byte_buffer = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1211,11 +1211,11 @@ CPU_65816.prototype.execute = function(raw_hex, has_header) {
|
||||||
} else {
|
} else {
|
||||||
var bytes = [];
|
var bytes = [];
|
||||||
for(var i = 1; i < bytes_required; i++) {
|
for(var i = 1; i < bytes_required; i++) {
|
||||||
this.r.pc+=8;
|
this.r.pc++;
|
||||||
bytes.push(this.mmu.read_byte(this.r.pc));
|
bytes.push(this.mmu.read_byte(this.r.pc));
|
||||||
}
|
}
|
||||||
operation.execute(this,bytes);
|
operation.execute(this,bytes);
|
||||||
}
|
}
|
||||||
this.r.pc += 8;
|
this.r.pc++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user