mirror of
https://github.com/holub/mame
synced 2025-04-26 02:07:14 +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;
|
X = 0x80;
|
||||||
Y = 0x00;
|
Y = 0x00;
|
||||||
P = 0x36;
|
P = 0x36;
|
||||||
SP = 0x01bd;
|
SP = 0x0100;
|
||||||
TMP = 0x0000;
|
TMP = 0x0000;
|
||||||
TMP2 = 0x00;
|
TMP2 = 0x00;
|
||||||
IR = 0x00;
|
IR = 0x00;
|
||||||
|
@ -1218,6 +1218,9 @@ tya_imp
|
|||||||
|
|
||||||
# exceptions
|
# exceptions
|
||||||
reset
|
reset
|
||||||
|
read_arg(SP); SP = 0x1ff;
|
||||||
|
read_arg(SP); SP--;
|
||||||
|
read_arg(SP); SP--;
|
||||||
P |= F_I; PC = read_arg(0xfffc);
|
P |= F_I; PC = read_arg(0xfffc);
|
||||||
PC = set_h(PC, read_arg(0xfffd));
|
PC = set_h(PC, read_arg(0xfffd));
|
||||||
prefetch();
|
prefetch();
|
||||||
|
Loading…
Reference in New Issue
Block a user