mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Fix a "wrong this" bug in cpu6502 (#44)
This commit is contained in:
parent
1e4e8381ec
commit
f1b6c51ce7
@ -997,11 +997,12 @@ export default class CPU6502 {
|
||||
mode: 'implied',
|
||||
};
|
||||
} else {
|
||||
let cpu = this;
|
||||
unk = {
|
||||
name: '???',
|
||||
op: function() {
|
||||
debug('Unknown OpCode: ' + toHex(b) +
|
||||
' at ' + toHex(this.pc - 1, 4));
|
||||
' at ' + toHex(cpu.pc - 1, 4));
|
||||
},
|
||||
modeFn: this.implied,
|
||||
mode: 'implied'
|
||||
|
Loading…
x
Reference in New Issue
Block a user