mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
add stack access to 65c02 reset too, add dummy reads before reset (nw)
This commit is contained in:
parent
9b79444157
commit
c04d4758c6
@ -1218,6 +1218,8 @@ tya_imp
|
||||
|
||||
# exceptions
|
||||
reset
|
||||
read_pc_noinc();
|
||||
read_pc_noinc();
|
||||
read(SP); dec_SP();
|
||||
read(SP); dec_SP();
|
||||
read(SP); dec_SP();
|
||||
|
@ -765,6 +765,12 @@ wai_imp
|
||||
|
||||
# exceptions
|
||||
reset_c
|
||||
read_pc_noinc();
|
||||
read(0xffff);
|
||||
read_pc_noinc();
|
||||
read(SP); dec_SP();
|
||||
read(SP); dec_SP();
|
||||
read(SP); dec_SP();
|
||||
P = (P | F_I) & ~F_D;
|
||||
PC = read_arg(0xfffc);
|
||||
PC = set_h(PC, read_arg(0xfffd));
|
||||
|
Loading…
Reference in New Issue
Block a user