File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,7 @@ GDTR label fword ; Global Descriptors Table Register
3232
3333 .code
3434
35- . 386
36- include printf. inc
37-
38- .386p
39-
35+ . 386
4036 assume DS :DGROUP
4137
4238myint0d1 proc
@@ -100,7 +96,7 @@ start16 proc
10096 mov es , ax
10197 mov edi , es : [ 0dh * 4 ]
10298
103- int 3
99+ int 3
104100 call EnableUnreal
105101
106102 mov ax , cs
@@ -136,6 +132,8 @@ exit:
136132 int 21h
137133start16 endp
138134
135+ .386p
136+
139137EnableUnreal proc
140138 cli
141139 push ds
Original file line number Diff line number Diff line change @@ -6128,6 +6128,7 @@ getcsattr endp
61286128;--- out: ZF=1 if in real-mode or segment limit is <= 64 kB
61296129
61306130getseglimit proc
6131+ push ax
61316132 xor ax , ax
61326133 cmp [ machine ], 3
61336134 jb @F
@@ -6139,6 +6140,7 @@ getseglimit proc
61396140 . 8086
61406141@@:
61416142 and ax , ax
6143+ pop ax
61426144 ret
61436145getseglimit endp
61446146
@@ -6221,9 +6223,7 @@ if ?PM
62216223 jz weip16
62226224 call verifysegm ;make bx a writeable segment
62236225 jc done
6224- push ax
62256226 call getseglimit
6226- pop ax
62276227 jz weip16
62286228 . 386
62296229 mov ds , bx
@@ -8900,9 +8900,7 @@ seteq endp
89008900
89018901getofsforbx proc
89028902if ?PM
8903- push ax
89048903 call getseglimit
8905- pop ax
89068904 jz gofbx_2
89078905 mov [ bAddr32 ], 1
89088906 push bx
@@ -8926,6 +8924,7 @@ errorj10:
89268924;--- a range is entered with the L/ength argument
89278925;--- get a valid length for segment in BX
89288926;--- L=0 means 64 kB (at least in 16bit mode)
8927+ ;--- return with NC if value ok.
89298928
89308929getlenforbx proc
89318930if ?PM
You can’t perform that action at this time.
0 commit comments