Skip to content

Commit 85c4786

Browse files
committed
fix debug CALL 5 / John Elliott/Licca
1 parent 2edc3ae commit 85c4786

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/debug/debug.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ NOLIST:
460460
POP BX ; back to beginning of new stack area
461461
MOV SPSAVE,AX ; remember where new stack is
462462
DEC AH
463+
INC AX ; Per John Elliot a long standing bug since 2.0
464+
INC AX ; affecting CALL 5 // Licca
463465
MOV ES:WORD PTR [6],AX ; change PSP to show usage of
464466
SUB BX,AX ; new stack area
465467
MOV CL,4
@@ -1233,4 +1235,4 @@ TEST_LEAD endp ;an000;end proc
12331235

12341236
CODE ENDS
12351237
END START
1236-

1238+


0 commit comments

Comments
 (0)