From a5d690e9cb7934542bdd722d68aecff1c6184739 Mon Sep 17 00:00:00 2001 From: Preston Skupinski Date: Mon, 2 May 2011 08:03:53 -0400 Subject: [PATCH] quick fix to a silly mistake --- cpu.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu.js b/cpu.js index 7d74a3b..8478e44 100644 --- a/cpu.js +++ b/cpu.js @@ -107,7 +107,7 @@ var MMU = { byte_buffer.push(raw_hex[i]); if(byte_buffer.length===2) { this.store_byte(loc, parseInt(byte_buffer[0]+byte_buffer[1], "16")); - loc += 8; + loc++; byte_buffer = []; } } @@ -1211,11 +1211,11 @@ CPU_65816.prototype.execute = function(raw_hex, has_header) { } else { var bytes = []; for(var i = 1; i < bytes_required; i++) { - this.r.pc+=8; + this.r.pc++; bytes.push(this.mmu.read_byte(this.r.pc)); } operation.execute(this,bytes); } - this.r.pc += 8; + this.r.pc++; } }