add stack access to 65c02 reset too, add dummy reads before reset (nw)

This commit is contained in:
hap 2019-09-17 16:35:24 +02:00
parent 9b79444157
commit c04d4758c6
2 changed files with 8 additions and 0 deletions

View File

@ -1218,6 +1218,8 @@ tya_imp
# exceptions # exceptions
reset reset
read_pc_noinc();
read_pc_noinc();
read(SP); dec_SP(); read(SP); dec_SP();
read(SP); dec_SP(); read(SP); dec_SP();
read(SP); dec_SP(); read(SP); dec_SP();

View File

@ -765,6 +765,12 @@ wai_imp
# exceptions # exceptions
reset_c 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; P = (P | F_I) & ~F_D;
PC = read_arg(0xfffc); PC = read_arg(0xfffc);
PC = set_h(PC, read_arg(0xfffd)); PC = set_h(PC, read_arg(0xfffd));