cos2000v1/programs/logo.asm

83 lines
1005 B
NASM
Raw Permalink Normal View History

.model tiny
.386c
.code
org 0100h
start:
mov si,offset logo
mov ah,4
xor di,di
mov bx,8000h
mov es,bx
int 48h
jc problem
push es
pop ds
mov bx,7000h
mov es,bx
xor si,si
xor di,di
mov ah,6
int 48h
jc problem2
push es
pop ds
xor si,si
mov ax,0008h
int 47h
mov ah,38
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
mov ah,39
int 47h
mov ax,0004
int 47h
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
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
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