Mail Archives: djgpp/1993/07/08/03:11:35
I am so sick and tired about hearing that gcc-compiled programs do not
run when you use "EMM386 -noems" that it reminds me of a certain Nike
commercial: JUST DO IT!
*** go32-org\vcpi.asm Sat May 29 09:06:02 1993
--- go32\vcpi.asm Tue Jun 15 20:28:48 1993
***************
*** 10,16 ****
include vcpi.inc
start_data16
! emm_name db "EMMXXXX0",0
end_data16
start_code16
--- 10,17 ----
include vcpi.inc
start_data16
! emm_name db "EMMXXXX0",0
! emm_namedisabled db "EMMQXXX0",0
end_data16
start_code16
***************
*** 30,38 ****
mov dx,offset emm_name
mov ax,3d00H ;Open Handle
int DOS_REQ
jc short no_emm_driver
! mov bx,ax
! mov ax,4400H ;Get IOCTL Data
int DOS_REQ
jc short no_emm_driver
test dx,80H ;1 = Device , 0 = File
--- 31,53 ----
mov dx,offset emm_name
mov ax,3d00H ;Open Handle
int DOS_REQ
+ mov cl,1
+ jnc short emm_ok
+ mov dx,offset emm_namedisabled
+ mov ax,3d00H ;Open Handle
+ int DOS_REQ
jc short no_emm_driver
! push ax
! mov ax,3500h+EMS_REQ ;Check for valid INT handler
! int DOS_REQ
! mov cx,es
! or cx,bx
! pop ax
! je short no_emm_driver
! mov cl,0
!
! emm_ok: mov bx,ax
! mov ax,4400H ;Get IOCTL Data
int DOS_REQ
jc short no_emm_driver
test dx,80H ;1 = Device , 0 = File
***************
*** 45,50 ****
--- 60,69 ----
pop ax
cmp al,-1 ;Ready?
jne short no_emm_driver
+ ;
+ mov ax,-1
+ cmp cl,0
+ je emm_present_end ; at least VCPI is
;
mov ah,40H ;Get Status
int EMS_REQ
- Raw text -