2004-06-12 23:34:04 +02:00
|
|
|
|
[bits 16] ;16 bits
|
2007-03-23 17:26:58 +01:00
|
|
|
|
[org 0x0] ;Point d'entr<74> en 0h
|
2004-06-12 23:34:04 +02:00
|
|
|
|
section .text ;Segment de code
|
|
|
|
|
|
2007-03-23 17:26:58 +01:00
|
|
|
|
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<73> 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
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
2007-03-23 17:26:58 +01:00
|
|
|
|
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
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|