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',
|
mode: 'implied',
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
let cpu = this;
|
||||||
unk = {
|
unk = {
|
||||||
name: '???',
|
name: '???',
|
||||||
op: function() {
|
op: function() {
|
||||||
debug('Unknown OpCode: ' + toHex(b) +
|
debug('Unknown OpCode: ' + toHex(b) +
|
||||||
' at ' + toHex(this.pc - 1, 4));
|
' at ' + toHex(cpu.pc - 1, 4));
|
||||||
},
|
},
|
||||||
modeFn: this.implied,
|
modeFn: this.implied,
|
||||||
mode: 'implied'
|
mode: 'implied'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user