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

This commit is contained in:
Nicolas Hordé 2007-03-23 16:53:15 +00:00
parent 3218661366
commit 79296d337d
1 changed files with 20 additions and 14 deletions

View File

@ -1,11 +1,19 @@
.model tiny model tiny,stdcall
.486 p586N
smart locals
.code jumps
codeseg
option procalign:byte
org 0100h include "..\include\mem.h"
include "..\include\divers.h"
org 0h
start: start:
header exe <"CE",1,0,0,,,,offset realstart>
realstart:
PNP_ADR_PORT equ 0x279 PNP_ADR_PORT equ 0x279
PNP_WRITE_PORT equ 0xA79 PNP_WRITE_PORT equ 0xA79
@ -23,17 +31,15 @@ IDENT_LEN equ 9
;renvoie le timer en ax ;renvoie le timer en ax
ctc: ctc:
cli cli
mov dx,043h mov dx,043h
mov al,0 mov al,0
out dx,al out dx,al
mov dx,40h mov dx,40h
in al,dx in al,dx
mov ah,al mov ah,al
in al,dx in al,dx
sti sti
ret ret
;attend pendant ax microsecondes ;attend pendant ax microsecondes
usleep: usleep:
end start