Browse Source

feat: mise à jour du code pour compilation sur LZASM en stdcall

feature/test
Nicolas Hordé 17 years ago
parent
commit
a756911670
  1. 41
      programs/exem-ce.asm

41
programs/exem-ce.asm

@ -1,29 +1,26 @@
.model small
.486
smart
.code
org 0h
model tiny,stdcall
p586N
locals
jumps
codeseg
option procalign:byte
include "..\include\mem.h"
include "..\include\divers.h"
include ..\include\mem.h
org 0h
start:
header exe <,1,0,,,offset imports,offset exports,>
header exe <"CE",1,0,0,,offset imports,,offset realstart>
realstart:
push offset message
call [affiche]
call [waitkey]
retf
message db 'Appel de la librairie video !',0
call [print],offset message
call [waitkey]
retf
imports:
db "VIDEO.LIB::print",0
affiche dd 0
db "EXEM-LIB.LIB::waitkey",0
waitkey dd 0
dw 0
exports:
message db 'Appel de la librairie \c02video\c07 et de la librairie \c02EXEM-LIB.LIB\c07 !',0
end start
importing
use VIDEO.LIB,print
use EXEM-LIB.LIB,waitkey
endi

Loading…
Cancel
Save