AltairZ80: CPU: Properly reset PC.
After adding the sim_clock_precalibrate_commands, the PC was not zero at the sim> prompt after loading altairz80. Set CPU_S to zero in cpu_reset to address this issue.
This commit is contained in:
parent
74eb45492a
commit
30d45ae7d9
1 changed files with 1 additions and 1 deletions
|
@ -6412,7 +6412,7 @@ static t_stat cpu_reset(DEVICE *dptr) {
|
|||
AF_S = AF1_S = 0;
|
||||
BC_S = DE_S = HL_S = 0;
|
||||
BC1_S = DE1_S = HL1_S = 0;
|
||||
IR_S = IX_S = IY_S = SP_S = 0;
|
||||
IR_S = IX_S = IY_S = SP_S = PC_S = 0;
|
||||
IM_S = IFF_S = 0; /* Set IM0, reset IFF1 and IFF2 */
|
||||
setBankSelect(0);
|
||||
cpu8086reset();
|
||||
|
|
Loading…
Add table
Reference in a new issue