minor cleanup

This commit is contained in:
Will Scullin 2019-09-18 19:51:31 -07:00
parent 86602a4eb7
commit 56e17f5b15
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B

View File

@ -242,10 +242,7 @@ export default function CPU6502(options)
}
function pushWord(val) {
writeByte(loc.STACK | sp, val >> 8);
sp = (sp + 0xff) & 0xff;
writeByte(loc.STACK | sp, val) & 0xff;
sp = (sp + 0xff) & 0xff;
rawPushWord(val);
cycles += 1;
}