2019-07-13 20:49:22 +02:00
|
|
|
|
use16
|
|
|
|
|
align 1
|
|
|
|
|
|
2007-03-28 17:53:56 +02:00
|
|
|
|
include "..\include\mem.h"
|
|
|
|
|
include "..\include\divers.h"
|
2004-11-30 20:27:59 +01:00
|
|
|
|
|
2007-03-28 17:53:56 +02:00
|
|
|
|
org 0h
|
2004-11-30 20:27:59 +01:00
|
|
|
|
|
2004-06-12 23:34:04 +02:00
|
|
|
|
start:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
header exe 1
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
2007-03-28 17:53:56 +02:00
|
|
|
|
realstart:
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke mballoc,65535
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jc problem3
|
|
|
|
|
push ax
|
|
|
|
|
pop es
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke projfile,logo
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jc problem
|
|
|
|
|
mov ecx,eax
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke mbfind,logo
|
2007-03-28 23:24:53 +02:00
|
|
|
|
jc problem
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke decompressrle,ax,0,es,0,cx
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jc problem2
|
|
|
|
|
push es
|
|
|
|
|
pop ds
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke savestate
|
|
|
|
|
invoke setvideomode,word 8
|
|
|
|
|
invoke clearscreen
|
|
|
|
|
invoke loadbmppalet,word 0
|
|
|
|
|
invoke showbmp,word 0,word 20,word 150
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jc problem4
|
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke print,poper
|
2004-11-30 20:27:59 +01:00
|
|
|
|
endofit:
|
2007-03-28 17:53:56 +02:00
|
|
|
|
xor ax,ax
|
|
|
|
|
int 16h
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke restorestate
|
2007-03-28 17:53:56 +02:00
|
|
|
|
retf
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
|
|
|
|
problem:
|
2007-03-28 17:53:56 +02:00
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke print, error
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jmp endofit
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
|
|
|
|
problem2:
|
2007-03-28 17:53:56 +02:00
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke print, error2
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jmp endofit
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
2004-11-03 01:33:59 +01:00
|
|
|
|
problem3:
|
2007-03-28 17:53:56 +02:00
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke print, error3
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jmp endofit
|
2004-11-03 01:33:59 +01:00
|
|
|
|
|
2004-11-30 20:27:59 +01:00
|
|
|
|
problem4:
|
2007-03-28 17:53:56 +02:00
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
2019-07-09 18:30:00 +02:00
|
|
|
|
invoke print, error4
|
2007-03-28 17:53:56 +02:00
|
|
|
|
jmp endofit
|
2004-11-30 20:27:59 +01:00
|
|
|
|
|
|
|
|
|
poper db '\c0BC\c0CO\c0DS\c0E2\c0E0\c0E0\c0F0 en mode graphique',0
|
2007-03-28 23:24:53 +02:00
|
|
|
|
logo db 'COS.RIP',0
|
2004-06-12 23:34:04 +02:00
|
|
|
|
ok1 db 'Chargement de l''image OK',0
|
|
|
|
|
ok2 db 'Decompression de l''image OK',0
|
2004-11-30 20:27:59 +01:00
|
|
|
|
error3 db '\c04Une erreur est apparue lors de l''allocation de m<>moire',0
|
|
|
|
|
error db '\c04Une erreur est apparue lors du chargement de l''image',0
|
|
|
|
|
error2 db '\c04Une erreur est apparue lors de la decompression de l''image',0
|
|
|
|
|
error4 db '\c0FUne erreur est apparue lors de l''affichage de l''image',0
|
|
|
|
|
|
|
|
|
|
|
2007-03-28 17:53:56 +02:00
|
|
|
|
importing
|
|
|
|
|
use VIDEO,restorestate
|
|
|
|
|
use VIDEO,savestate
|
|
|
|
|
use VIDEO,setvideomode
|
|
|
|
|
use VIDEO,clearscreen
|
|
|
|
|
use DISQUE,decompressrle
|
|
|
|
|
use DISQUE,projfile
|
|
|
|
|
use SYSTEME,mbfind
|
|
|
|
|
use SYSTEME,mballoc
|
|
|
|
|
use VIDEO.LIB,print
|
|
|
|
|
use BMP.LIB,showbmp
|
|
|
|
|
use BMP.LIB,loadbmppalet
|
|
|
|
|
endi
|