Skip to content

Commit b60a75d

Browse files
v1.28 mode-detection code didn't work for debugxg.
1 parent 0d1f574 commit b60a75d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

HISTORY.TXT

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,6 @@
244244
was always 16-bit only.
245245
- DEBUGX bugfix e-cmd non-interactive mode: skip test for 16-bit wrap
246246
if segment is larger than 64 kB.
247+
- debugxg bugfix: in v1.28, the driver version crashed when it became
248+
active because the new mode detection code always returned status
249+
"in protected-mode".

src/DEBUG.ASM

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; DEBUG.ASM Masm/JWasm assembler source for a clone of DEBUG.COM
2-
; Version 1.28, 10.03.2021.
2+
; Version 1.29, __.__.2022.
33

44
; To assemble, use:
55
; jwasm -D?PM=0 -bin -Fo debug.com debug.asm
@@ -651,7 +651,7 @@ if ?PM
651651
prompt3 db '#' ;protected-mode prompt
652652
endif
653653

654-
helpmsg db DOSNAME, ' ', DBGNAME2, ' v1.28 help screen',CR,LF
654+
helpmsg db DOSNAME, ' ', DBGNAME2, ' v1.29 help screen',CR,LF
655655
db 'assemble',9, 'A [address]',CR,LF
656656
db 'compare',9,9, 'C range address',CR,LF
657657
db 'dump',9,9, 'D [range]',CR,LF
@@ -11758,7 +11758,7 @@ initcont:
1175811758
;--- Debug initialization code.
1175911759
;---------------------------------------
1176011760

11761-
imsg1 db DBGNAME,' version 1.28. Debugger.',CR,LF,CR,LF
11761+
imsg1 db DBGNAME,' version 1.29. Debugger.',CR,LF,CR,LF
1176211762
db 'Usage: ', DBGNAME, ' [[drive:][path]progname [arglist]]',CR,LF,CR,LF
1176311763
db ' progname (executable) file to debug or examine',CR,LF
1176411764
db ' arglist parameters given to program',CR,LF,CR,LF
@@ -11851,9 +11851,13 @@ endif
1185111851
initcode proc
1185211852
cld
1185311853
if DRIVER
11854+
if 0
1185411855
mov ah,51h
1185511856
int 21h
1185611857
mov ax,bx
11858+
else
11859+
mov ax,cs
11860+
endif
1185711861
else
1185811862
mov ax,cs
1185911863
mov word ptr [execblk.cmdtail+2],ax

0 commit comments

Comments
 (0)