From f8f8bdfff3923915ca127b9ee65231bbcc49ce0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Sun, 18 Mar 2007 20:27:31 +0000 Subject: [PATCH] feat: utilisation de macros pour les importations --- lib/video.asm | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/lib/video.asm b/lib/video.asm index 6a0e872..fe109fe 100644 --- a/lib/video.asm +++ b/lib/video.asm @@ -29,29 +29,20 @@ declare showstring0 declare showintr declare showintl ende + +importing +use VIDEO,addline +use VIDEO,setcolor +use VIDEO,getxy +use VIDEO,setxy +use VIDEO,setvideomode +use VIDEO,setfont +use VIDEO,clearscreen +use VIDEO,enablescroll +use VIDEO,disablescroll +use VIDEO,showchar +endi -imports: - db "VIDEO::addline",0 -addline dd 0 - db "VIDEO::setcolor",0 -setcolor dd 0 - db "VIDEO::getxy",0 -getxy dd 0 - db "VIDEO::setxy",0 -setxy dd 0 - db "VIDEO::setvideomode",0 -setvideomode dd 0 - db "VIDEO::setfont",0 -setfont dd 0 - db "VIDEO::clearscreen",0 -clearscreen dd 0 - db "VIDEO::enablescroll",0 -enablescroll dd 0 - db "VIDEO::disablescroll",0 -disablescroll dd 0 - db "VIDEO::showchar",0 -showchar dd 0 - dw 0 ;================PRINT============== ;Affiche la chaine %0 en utilisant les parametres de formatage %x....%x