From a6462657603ecff2e9377515eb8131d3abb618b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 23 Mar 2007 16:26:58 +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-nasm.asm | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/contribs/ex-nasm.asm b/contribs/ex-nasm.asm index dca5112..a73f573 100644 --- a/contribs/ex-nasm.asm +++ b/contribs/ex-nasm.asm @@ -1,14 +1,27 @@ [bits 16] ;16 bits -[org 0x0100] ;Point d'entré en 0100h +[org 0x0] ;Point d'entré en 0h section .text ;Segment de code -start: - mov ah,0x0D - mov si,msg - int 0x47 ;Afficher le texte (Showstring0) - xor ax,ax - int 0x16 ;Attendre l'appuie sur une touche - retf ;retour far +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 -msg db 'Hello World',0 +imported: +db "VIDEO.LIB::print",0 +print dd 0 +endofimport dd 0 + +realstart: + push msg + call far [cs:print] ;Afficher le texte (Showstring0) + xor ax,ax + int 0x16 ;Attendre l'appuie sur une touche + retf ;retour far + +msg db 'Hello World !!',0