2004-06-12 23:34:04 +02:00
|
|
|
|
.model tiny
|
|
|
|
|
.386c
|
|
|
|
|
.code
|
2004-11-19 18:23:06 +01:00
|
|
|
|
org 0h
|
2004-06-12 23:34:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
start:
|
2004-11-03 01:33:59 +01:00
|
|
|
|
mov ah,7
|
|
|
|
|
mov cx,65535
|
|
|
|
|
int 49h
|
|
|
|
|
jc problem3
|
|
|
|
|
push gs
|
|
|
|
|
pop es
|
|
|
|
|
mov ah,7
|
|
|
|
|
mov cx,65535
|
|
|
|
|
int 49h
|
|
|
|
|
jc problem3
|
2004-06-12 23:34:04 +02:00
|
|
|
|
mov si,offset logo
|
|
|
|
|
mov ah,4
|
|
|
|
|
xor di,di
|
|
|
|
|
int 48h
|
|
|
|
|
jc problem
|
|
|
|
|
|
2004-11-03 01:33:59 +01:00
|
|
|
|
|
2004-06-12 23:34:04 +02:00
|
|
|
|
push es
|
|
|
|
|
pop ds
|
2004-11-03 01:33:59 +01:00
|
|
|
|
push gs
|
|
|
|
|
pop es
|
2004-06-12 23:34:04 +02:00
|
|
|
|
xor si,si
|
|
|
|
|
xor di,di
|
|
|
|
|
mov ah,6
|
|
|
|
|
int 48h
|
|
|
|
|
jc problem2
|
|
|
|
|
|
|
|
|
|
push es
|
|
|
|
|
pop ds
|
|
|
|
|
xor si,si
|
|
|
|
|
|
2004-11-05 02:01:37 +01:00
|
|
|
|
mov ah,28h
|
2004-06-12 23:34:04 +02:00
|
|
|
|
int 47h
|
2004-11-05 02:01:37 +01:00
|
|
|
|
mov ax,0008h
|
2004-06-12 23:34:04 +02:00
|
|
|
|
int 47h
|
|
|
|
|
mov ah,2
|
|
|
|
|
int 47h
|
|
|
|
|
mov cx,300
|
|
|
|
|
mov bx,30
|
|
|
|
|
mov ah,37
|
|
|
|
|
int 47h
|
|
|
|
|
mov ah,15h
|
|
|
|
|
mov cl,11
|
|
|
|
|
int 47h
|
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
|
|
|
|
mov ah,13
|
|
|
|
|
mov si,offset poper
|
|
|
|
|
int 47h
|
|
|
|
|
mov ax,0
|
|
|
|
|
int 16h
|
2004-11-05 02:01:37 +01:00
|
|
|
|
mov ah,29h
|
2004-11-03 01:33:59 +01:00
|
|
|
|
int 47h
|
2004-06-12 23:34:04 +02:00
|
|
|
|
db 0CBH
|
|
|
|
|
|
|
|
|
|
problem:
|
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
|
|
|
|
mov ah,13
|
|
|
|
|
mov si,offset error
|
|
|
|
|
int 47h
|
|
|
|
|
mov ax,0
|
|
|
|
|
int 16h
|
|
|
|
|
db 0CBh
|
|
|
|
|
|
|
|
|
|
problem2:
|
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
|
|
|
|
mov ah,13
|
|
|
|
|
mov si,offset error2
|
|
|
|
|
int 47h
|
|
|
|
|
mov ax,0
|
|
|
|
|
int 16h
|
|
|
|
|
db 0CBh
|
|
|
|
|
|
2004-11-03 01:33:59 +01:00
|
|
|
|
problem3:
|
|
|
|
|
push cs
|
|
|
|
|
pop ds
|
|
|
|
|
mov ah,13
|
|
|
|
|
mov si,offset error3
|
|
|
|
|
int 47h
|
|
|
|
|
mov ax,0
|
|
|
|
|
int 16h
|
|
|
|
|
db 0CBh
|
|
|
|
|
|
2004-06-12 23:34:04 +02:00
|
|
|
|
poper db 'COS2000 en mode graphique',0
|
|
|
|
|
logo db 'cos.rip',0
|
|
|
|
|
ok1 db 'Chargement de l''image OK',0
|
|
|
|
|
ok2 db 'Decompression de l''image OK',0
|
2004-11-03 01:33:59 +01:00
|
|
|
|
error3 db 'Une erreur est apparue lors de l''allocation de m<>moire',0
|
2004-06-12 23:34:04 +02:00
|
|
|
|
error db 'Une erreur est apparue lors du chargement de l''image',0
|
|
|
|
|
error2 db 'Une erreur est apparue lors de la decompression de l''image',0
|
|
|
|
|
end start
|