mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-24 02:33:19 +00:00
CPU fixes from tracing against AppleWin
- All regs are 0xFF on reboot - Stack pointer is 0xFC on reboot - Flags are set accordingly - Fix op_JMP_ind tracing display
This commit is contained in:
parent
9bbe906f43
commit
e6ca42be64
@ -1249,10 +1249,7 @@ E(op_JMP_abs)
|
||||
Continue
|
||||
|
||||
E(op_JMP_ind) // 0x6c
|
||||
GetFromPC_B
|
||||
xchgb %al, %ah
|
||||
GetFromPC_B
|
||||
xchgb %al, %ah
|
||||
GetFromPC_W
|
||||
cmpb $0xFF, %al
|
||||
je jmp_special
|
||||
GetFromMem_W(_XAX)
|
||||
@ -2252,10 +2249,14 @@ E(cpu65_run)
|
||||
// Zero all used registers
|
||||
xorLQ _XAX, _XAX
|
||||
xorLQ XY_Reg_X, XY_Reg_X
|
||||
movb $0xFF, X_Reg
|
||||
movb $0xFF, Y_Reg
|
||||
xorLQ AF_Reg_X, AF_Reg_X
|
||||
movb $0xFF, A_Reg
|
||||
orb $(C_Flag|X_Flag|I_Flag|V_Flag|B_Flag|Z_Flag|N_Flag), F_Reg
|
||||
xorLQ PC_Reg_X, PC_Reg_X
|
||||
xorLQ EffectiveAddr_X, EffectiveAddr_X
|
||||
movLQ $0x1FF, SP_Reg_X
|
||||
movLQ $0x1FC, SP_Reg_X
|
||||
jmp ex_reset
|
||||
|
||||
exit_cpu65_run:
|
||||
|
Loading…
Reference in New Issue
Block a user