From 8f2ddfdab7bc3a2c31eab5b3a4fd46b32d60e9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Tue, 27 Mar 2007 10:13:50 +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/souris.asm | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/programs/souris.asm b/programs/souris.asm index cd02e54..eca057b 100644 --- a/programs/souris.asm +++ b/programs/souris.asm @@ -1,27 +1,32 @@ -.model tiny -.486 -smart -.code +model tiny,stdcall +p586N +locals +jumps +codeseg +option procalign:byte + +include "..\include\mem.h" +include "..\include\divers.h" org 0h -include ..\include\mem.h - start: -header exe <,1,0,,,offset imports,,> +header exe <"CE",1,0,0,,offset imports,,offset realstart> -realstart: -mov ah,2 -int 74h -push offset message -call [print] -retf +realstart: + call [mouseon] + jc errormouse + call [print],offset message + retf -message db 'Activation de la souris',0 +errormouse: + call [print],offset errormessage + retf -imports: - db "VIDEO.LIB::print",0 -print dd 0 - dw 0 +message db 'Activation de la souris\l',0 +errormessage db 'impossible d''activer la souris\l',0 -end start +importing +use VIDEO.LIB,print +use MOUSE.SYS,mouseon +endi