Beautiful... ain't she?

This commit is contained in:
maelstrom 2024-07-25 18:53:07 +03:00
parent 6fcf973a18
commit 086bdfca2c
2 changed files with 19 additions and 8 deletions

View file

@ -4,6 +4,19 @@
section KERNEL follows=BOOTSECTOR vstart=1000h section KERNEL follows=BOOTSECTOR vstart=1000h
%macro mod 2
push ax
push cx
mov cx, %2
xor dx, dx
mov ax, %1
div cx
pop cx
pop ax
%endmacro
main: main:
mov ax, 0x0013 mov ax, 0x0013
int 0x10 int 0x10
@ -15,18 +28,16 @@ main:
mov di, 0 mov di, 0
mov bx, 0 mov bx, 0
.c: .r:
add bl, 1 add bx, 1
.f: .f:
mov byte [es:di], bl mov byte [es:di], bl
add di, 1 add di, 1
cmp di, 0xFFFF mod di, 320
cmp dx, 0
jnz .f jnz .f
push bx cmp bx, 200
mov bx, 100 jnz .r
call sleep
pop bx
jmp .c
pop es pop es

BIN
main.bin

Binary file not shown.