feat: mise à jour du code pour compilation sur LZASM en stdcall

This commit is contained in:
Nicolas Hordé 2007-03-27 10:13:50 +00:00
parent f8a1b7f118
commit 8f2ddfdab7
1 changed files with 24 additions and 19 deletions

View File

@ -1,27 +1,32 @@
.model tiny model tiny,stdcall
.486 p586N
smart locals
.code jumps
codeseg
option procalign:byte
include "..\include\mem.h"
include "..\include\divers.h"
org 0h org 0h
include ..\include\mem.h
start: start:
header exe <,1,0,,,offset imports,,> header exe <"CE",1,0,0,,offset imports,,offset realstart>
realstart: realstart:
mov ah,2 call [mouseon]
int 74h jc errormouse
push offset message call [print],offset message
call [print] retf
retf
message db 'Activation de la souris',0 errormouse:
call [print],offset errormessage
retf
imports: message db 'Activation de la souris\l',0
db "VIDEO.LIB::print",0 errormessage db 'impossible d''activer la souris\l',0
print dd 0
dw 0
end start importing
use VIDEO.LIB,print
use MOUSE.SYS,mouseon
endi