2019-07-13 20:49:22 +02:00
|
|
|
|
use16
|
|
|
|
|
align 1
|
|
|
|
|
|
2007-03-24 20:39:03 +01:00
|
|
|
|
include "..\include\mem.h"
|
|
|
|
|
include "..\include\divers.h"
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
2007-03-24 20:39:03 +01:00
|
|
|
|
org 0h
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
2019-07-14 12:47:14 +02:00
|
|
|
|
header exe 1,0,imports,0,realstart
|
2004-11-25 01:04:04 +01:00
|
|
|
|
|
|
|
|
|
realstart:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke randomize
|
2007-03-24 20:39:03 +01:00
|
|
|
|
push 0FFFFh
|
|
|
|
|
pushd 652201
|
|
|
|
|
pushd 1545454545
|
|
|
|
|
push 1523
|
|
|
|
|
push 2041
|
2019-07-09 18:30:00 +02:00
|
|
|
|
push zero
|
|
|
|
|
push fixe
|
2007-03-24 20:39:03 +01:00
|
|
|
|
push 5
|
|
|
|
|
push 'i'
|
|
|
|
|
push 'a'
|
|
|
|
|
pushd 5041
|
|
|
|
|
pushd 125645
|
|
|
|
|
pushd 5041
|
|
|
|
|
pushd 125645
|
|
|
|
|
pushd 5041
|
|
|
|
|
pushd 125645
|
2019-07-09 18:30:00 +02:00
|
|
|
|
push message
|
|
|
|
|
invoke print
|
2007-03-24 20:39:03 +01:00
|
|
|
|
xor ax,ax
|
|
|
|
|
int 16h
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke clearscreen
|
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke clearscreen
|
2007-03-24 20:39:03 +01:00
|
|
|
|
mov cx,200
|
2004-06-12 23:34:04 +02:00
|
|
|
|
go1:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
|
|
|
|
invoke print, textdemo1
|
|
|
|
|
invoke put
|
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
2007-03-24 20:39:03 +01:00
|
|
|
|
dec cx
|
|
|
|
|
jnz go1
|
|
|
|
|
mov cx,200
|
2004-06-12 23:34:04 +02:00
|
|
|
|
go2:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
|
|
|
|
invoke print, textdemo2
|
|
|
|
|
invoke put
|
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
2007-03-24 20:39:03 +01:00
|
|
|
|
dec cx
|
|
|
|
|
jnz go2
|
|
|
|
|
mov cx,200
|
2004-06-12 23:34:04 +02:00
|
|
|
|
go3:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
|
|
|
|
invoke print, textdemo3
|
|
|
|
|
invoke put
|
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
2007-03-24 20:39:03 +01:00
|
|
|
|
dec cx
|
|
|
|
|
jnz go3
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke clearscreen
|
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke clearscreen
|
|
|
|
|
invoke print, texte2
|
2007-03-24 20:39:03 +01:00
|
|
|
|
mov bp,255
|
|
|
|
|
xor edx,edx
|
2004-06-12 23:34:04 +02:00
|
|
|
|
go4:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
2007-03-24 20:39:03 +01:00
|
|
|
|
inc edx
|
|
|
|
|
push edx
|
2019-07-09 18:30:00 +02:00
|
|
|
|
push texte3
|
|
|
|
|
invoke print
|
|
|
|
|
invoke xchgpages
|
|
|
|
|
invoke waitretrace
|
2007-03-24 20:39:03 +01:00
|
|
|
|
dec bp
|
|
|
|
|
jnz go4
|
2019-07-09 18:30:00 +02:00
|
|
|
|
push texte4
|
|
|
|
|
invoke print
|
2007-03-24 20:39:03 +01:00
|
|
|
|
mov ax,0
|
|
|
|
|
int 16h
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke restorestate
|
2007-03-24 20:39:03 +01:00
|
|
|
|
retf
|
2004-06-12 23:34:04 +02:00
|
|
|
|
put:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke random
|
2007-04-18 09:43:47 +02:00
|
|
|
|
mov di,ax
|
2007-03-24 20:39:03 +01:00
|
|
|
|
and di,4096-2
|
2019-07-09 18:30:00 +02:00
|
|
|
|
mov si,fond
|
2007-03-24 20:39:03 +01:00
|
|
|
|
call showstring2
|
|
|
|
|
ret
|
2007-04-18 09:43:47 +02:00
|
|
|
|
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
2004-11-25 01:04:04 +01:00
|
|
|
|
zero db 'Chaine a z<>ro terminal',0
|
|
|
|
|
fixe db 20,'Chaine a taille fixe'
|
2007-04-11 21:22:29 +02:00
|
|
|
|
message db "\s\m01\e\c07\h01D<31>monstration de la librairie VIDEO.LIB\l\l"
|
2004-11-25 01:04:04 +01:00
|
|
|
|
db "\c01Nombres entiers ou sign<67>s (%%u/%%i):\l%u\l%iD\l"
|
|
|
|
|
db "\c02Nombre hexad<61>cimaux (%%h):\l%hD\l%hW\l"
|
|
|
|
|
db "\c03Nombres Binaires (%%b):\l%bD\l%bB\l"
|
|
|
|
|
db "\c04Caracteres simples ou multiples (%%c/%%cM):\l%c\l%cM\l"
|
|
|
|
|
db "\c05Chaines a z<>ro terminal ou fixes (%%0/%%s):\l%s\l%0\l"
|
|
|
|
|
db "\c06Dates et heures (%%t/%%d):\l%t\l%d\l"
|
|
|
|
|
db "\c07Nombre a echelle automatique (%%z):\l%z\l%z\l"
|
|
|
|
|
db "\c08Attributs de fichiers (%%a):\l%a",0
|
|
|
|
|
|
|
|
|
|
fond db 16,'Ceci est un fond'
|
|
|
|
|
textdemo1 db '\c05Scrolling Scrolling Scrolling Scrolling Scrolling Scrolling Scrolling Scrolling\l',0
|
|
|
|
|
textdemo2 db '\c07Vertical Vertical Vertical Vertical Vertical Vertical Vertical Vertical\l',0
|
|
|
|
|
textdemo3 db '\c09Rapide Rapide Rapide Rapide Rapide Rapide Rapide Rapide\l',0
|
|
|
|
|
texte1 db 'Echange rapide de pages Vid<69>o',0
|
|
|
|
|
texte2 db '\g04,13Routine d''affichage Ultra Rapide Agissant sur le Mat<61>riel'
|
|
|
|
|
db '\g04,14Possibilit<69> de r<>aliser des effets de superposition',0
|
|
|
|
|
texte3 db '\c04%bD\l',0
|
2007-04-11 21:22:29 +02:00
|
|
|
|
texte4 db '\g01,00Sauvegarde et restauration de l''ecran (\\s/\\r)',0
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
|
|
|
|
showstring2:
|
2007-03-24 20:39:03 +01:00
|
|
|
|
push es bx cx si di
|
|
|
|
|
add di,4000
|
|
|
|
|
mov bx,0B800h
|
|
|
|
|
mov es,bx
|
|
|
|
|
mov bl,[si]
|
|
|
|
|
mov ch,3
|
2004-06-12 23:34:04 +02:00
|
|
|
|
strinaize4:
|
2007-03-24 20:39:03 +01:00
|
|
|
|
inc si
|
|
|
|
|
mov cl,[si]
|
|
|
|
|
mov [es:di],cx
|
|
|
|
|
add di,2
|
|
|
|
|
dec bl
|
|
|
|
|
jnz strinaize4
|
|
|
|
|
pop di si cx bx es
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
importing
|
2007-04-18 09:43:47 +02:00
|
|
|
|
use MATH.LIB,randomize
|
|
|
|
|
use MATH.LIB,random
|
2007-03-24 20:39:03 +01:00
|
|
|
|
use VIDEO.LIB,print
|
|
|
|
|
use VIDEO,xchgpages
|
|
|
|
|
use VIDEO,setvideomode
|
|
|
|
|
use VIDEO,clearscreen
|
|
|
|
|
use VIDEO,savestate
|
|
|
|
|
use VIDEO,restorestate
|
|
|
|
|
use VIDEO,waitretrace
|
|
|
|
|
endi
|