From 48fd1d4ca326de5f1855b85f24b1750f448b98ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 23 Mar 2007 16:27:16 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20mise=20=C3=A0=20jour=20du=20code=20pour?= =?UTF-8?q?=20compilation=20sur=20LZASM=20en=20stdcall=20Passage=20au=20fo?= =?UTF-8?q?rmat=20CE,=20offset=20a=200=20D=C3=A9claration=20des=20imports?= =?UTF-8?q?=20et=20exports=20en=20utilisant=20les=20macros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contribs/ex-tasm.asm | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/contribs/ex-tasm.asm b/contribs/ex-tasm.asm index 56d894f..2c0cc96 100644 --- a/contribs/ex-tasm.asm +++ b/contribs/ex-tasm.asm @@ -3,17 +3,29 @@ Smart ;Optimisations .code ;Segment de code -org 0100h ;Point d'entré en 0100h +org 0h ;Point d'entré en 0h + +checks db "CE" ;signature de l'exe +major db 1 ;N° version +checksum dd 0 ;Checksum de l'exe +compressed db 0 ;a 1 si compressé par RLE +exports dw 0 ;importation de fonctions +imports dw imported ;exportation de fonctions +sections dw 0 ;sections des blocs mémoire +starting dw realstart + +imported: +db "VIDEO.LIB::print",0 +print dd 0 start: - mov ah,0Dh - mov si,offset msg - int 47h ;Afficher le texte (Showstring0) - xor ax,ax - int 16h ;Attendre l'appuie sur une touche - db 0CBH ;retour far + push msg + call far [cs:print] ;Afficher le texte (Showstring0) + xor ax,ax + int 16h ;Attendre l'appuie sur une touche + db 0CBH ;retour far -msg db 'Hello World',0 +msg db 'Hello World !!',0 end start