#make_boot#
org 7c00h
use16
jmp start
e:
mov ax,cs
mov ds,ax
mov es,ax
ret
put_clear:
mov ax,8000h
mov ds,ax
mov al,200
mov ah,al
mov bx,0000h
put_clear0:
mov [bx],ax
add bx,02h
cmp bx,0FFFEh
jz e
jmp put_clear0
put_sprite:
mov ax,8000h
mov es,ax
mov di,420
mov bx,sprite
put_sprite0:
mov al,[bx]
cmp al,00h
jz e
stosb
inc bx
jmp put_sprite0
draw:
mov ax,8000h
mov ds,ax
mov ax,0A000h
mov es,ax
mov bx,0000h
mov di,0000h
draw0:
mov al,[bx]
stosb
cmp bx,0FFFFh
jz e
inc bx
jmp draw0
start:
cld
call e
mov ax,0013h
int 10h
call put_clear
cld
call put_sprite
cld
call draw
mov ah,0
int 16h
db 250
db 250
db 250
db 200
db 200
db 200
sprite db 150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,0
И это пугает слишком сложно понять что не так..