From 79296d337ddf67c341687e8c3a9f575b23287f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 23 Mar 2007 16:53:15 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20mise=20=C3=A0=20jour=20du=20code=20pour?= =?UTF-8?q?=20compilation=20sur=20LZASM=20en=20stdcall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- programs/isa.asm | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/programs/isa.asm b/programs/isa.asm index 2d50ab9..361b685 100644 --- a/programs/isa.asm +++ b/programs/isa.asm @@ -1,11 +1,19 @@ -.model tiny -.486 -smart -.code +model tiny,stdcall +p586N +locals +jumps +codeseg +option procalign:byte -org 0100h +include "..\include\mem.h" +include "..\include\divers.h" + +org 0h start: +header exe <"CE",1,0,0,,,,offset realstart> + +realstart: PNP_ADR_PORT equ 0x279 PNP_WRITE_PORT equ 0xA79 @@ -23,17 +31,15 @@ IDENT_LEN equ 9 ;renvoie le timer en ax ctc: cli - mov dx,043h - mov al,0 - out dx,al - mov dx,40h - in al,dx - mov ah,al - in al,dx + mov dx,043h + mov al,0 + out dx,al + mov dx,40h + in al,dx + mov ah,al + in al,dx sti ret ;attend pendant ax microsecondes usleep: - -end start