Skip to content

Commit c4659f1

Browse files
committed
Work around JWASM bug
forward references across an ORG directive seem to be mishandled. Make it a backward reference instead
1 parent 1a0b7aa commit c4659f1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

a7-142.asm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ I13R_DoneCallback LABEL NEAR
7676
org 4CEBh
7777
I13R_SetStatus LABEL NEAR
7878

79-
; branch out before clobbering SI and DS
80-
org 4994h
81-
cmp ah, 20h
82-
jbe SHORT I13_Classic
83-
jmp MaybeI13E
84-
I13_Classic:
85-
mov si, cs
86-
mov ds, si
87-
8879
org 458Ah
8980
; Big hole. It seems Adaptec reserved space for 88 BIOSDriveInfo
9081
; structures instead of just 8 BIOSDriveInfo structures. So there
@@ -257,6 +248,15 @@ MyCDBExecute LABEL NEAR
257248
ret
258249
I13E_core ENDP
259250

251+
; branch out before clobbering SI and DS
252+
org 4994h
253+
cmp ah, 20h
254+
jbe SHORT I13_Classic
255+
jmp MaybeI13E
256+
I13_Classic:
257+
mov si, cs
258+
mov ds, si
259+
260260
org 53h
261261
;db "Version 1.42"
262262
db "V1.42+EDD1.0"

0 commit comments

Comments
 (0)