From b8248c75a2fc5b3550a65f4bb5e9c611d4391093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Wed, 18 Apr 2007 07:44:43 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20ajout=20du=20logiciel=20test2d.ce=20qui?= =?UTF-8?q?=20permet=20de=20v=C3=A9rifier=20le=20bon=20fonctionnement=20de?= =?UTF-8?q?s=20fonctions=20graphiques=202D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- programs/MAKEFILE | 2 +- programs/test2d.asm | 55 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 programs/test2d.asm diff --git a/programs/MAKEFILE b/programs/MAKEFILE index 71dee3d..b01d081 100644 --- a/programs/MAKEFILE +++ b/programs/MAKEFILE @@ -1,7 +1,7 @@ asm= lzasm /z/t lnk= elink -all: exem-lib.lib exem-ce.ce pmode.ce isa.ce editeur.ce volume.ce test.ce verifier.ce gestion.ce logo.ce souris.ce test3d.ce +all: exem-lib.lib exem-ce.ce pmode.ce isa.ce editeur.ce volume.ce test.ce verifier.ce gestion.ce logo.ce souris.ce test3d.ce test2d.ce .asm.obj: $(asm) $< diff --git a/programs/test2d.asm b/programs/test2d.asm new file mode 100644 index 0000000..c22f090 --- /dev/null +++ b/programs/test2d.asm @@ -0,0 +1,55 @@ +model tiny,stdcall +p586N +locals +jumps +codeseg +option procalign:byte + +include "..\include\mem.h" +include "..\include\fat.h" +include "..\include\divers.h" +include "..\include\3d.h" + +org 0h + +start: +header exe <"CE",1,0,0,,offset imports,,offset realstart> + +realstart: + call [cs:randomize] + call [cs:savestate] + call [cs:setvideomode],10 + call [cs:clearscreen] + mov cx,65535 +show: + call [cs:random] + and ax,1111b + push ax + call [cs:random] + push ax + call [cs:random] + push ax + call [cs:random] + push ax + call [cs:random] + push ax + call [cs:line] + dec cx + jnz show + call [cs:bioswaitkey] + call [cs:restorestate] + retf + +importing +use VIDEO.LIB,print +use VIDEO,savestate +use VIDEO,clearscreen +use VIDEO,setvideomode +use VIDEO,restorestate +use VIDEO,waitretrace +use GRAPHIC,line ;@x1:word,@y1:word,@x2:word,@y2:word,@color:word +use GRAPHIC,polyfill ;@pointer:word,@nbfaces:word,@color:word; +use SYSTEME,bioswaitkey +use MATH.LIB,randomize +use MATH.LIB,random +endi