mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
Merge pull request #5636 from MoochMcGee/master
Fix M6502 reset procedure. Fixes MT6486 at the very least. [Melissa G…
This commit is contained in:
commit
9def59d2ec
@ -99,7 +99,7 @@ void m6502_device::init()
|
||||
X = 0x80;
|
||||
Y = 0x00;
|
||||
P = 0x36;
|
||||
SP = 0x01bd;
|
||||
SP = 0x0100;
|
||||
TMP = 0x0000;
|
||||
TMP2 = 0x00;
|
||||
IR = 0x00;
|
||||
|
@ -1218,6 +1218,9 @@ tya_imp
|
||||
|
||||
# exceptions
|
||||
reset
|
||||
read_arg(SP); SP = 0x1ff;
|
||||
read_arg(SP); SP--;
|
||||
read_arg(SP); SP--;
|
||||
P |= F_I; PC = read_arg(0xfffc);
|
||||
PC = set_h(PC, read_arg(0xfffd));
|
||||
prefetch();
|
||||
|
Loading…
Reference in New Issue
Block a user