mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
fix double cycle when in debug
This commit is contained in:
parent
2958fe53c1
commit
017e152476
@ -1177,7 +1177,7 @@ export default class CPU6502 {
|
||||
if (pc === undefined) {
|
||||
pc = this.pc;
|
||||
}
|
||||
const b = this.readByte(pc),
|
||||
const b = this.readByteDebug(pc),
|
||||
op = this.opary[b],
|
||||
size = sizes[op.mode];
|
||||
let result = toHex(pc, 4) + '- ';
|
||||
@ -1193,7 +1193,7 @@ export default class CPU6502 {
|
||||
|
||||
for (let idx = 0; idx < 4; idx++) {
|
||||
if (idx < size) {
|
||||
result += toHex(this.readByte(pc + idx)) + ' ';
|
||||
result += toHex(this.readByteDebug(pc + idx)) + ' ';
|
||||
} else {
|
||||
result += ' ';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user