]> 4ch.mooo.com Git - 16.git/commitdiff
xms still being worked on
authorsparky4 <sparky4@cock.li>
Thu, 29 Sep 2016 15:54:10 +0000 (10:54 -0500)
committersparky4 <sparky4@cock.li>
Thu, 29 Sep 2016 15:54:10 +0000 (10:54 -0500)
src/lib/16_pm.c

index ae14303f5d13b43ad9ff4dcc241b00a61987498d..bbfec527475869199ea80e34cb042f53d408f55b 100755 (executable)
@@ -422,13 +422,14 @@ End1:
        }\r
 \r
        __asm {\r
-               mov     dx,XMSAvail4\r
+               mov     dx,[XMSAvail4]\r
                //XMS_CALL(XMS_ALLOC);                          // And do the allocation\r
                mov     ah,XMS_ALLOC\r
                call    [DWORD PTR XMSDriver]\r
                mov     XMSHandle,dx\r
-               or      ax,ax                           // AJR: bugfix 10/8/92\r
-               jz      error2\r
+               mov     err,bl\r
+               cmp     ax,0                            // AJR: bugfix 10/8/92\r
+               je      error2\r
                mov     e,4\r
                jmp     End2\r
 #ifdef __BORLANDC__\r