it glowwwwwssss.

This commit is contained in:
maelstrom 2024-07-25 18:37:04 +03:00
parent b42a2bda0c
commit 6fcf973a18
4 changed files with 42 additions and 10 deletions

0
gfx_util.asm Normal file
View file

View file

@ -5,20 +5,36 @@
section KERNEL follows=BOOTSECTOR vstart=1000h section KERNEL follows=BOOTSECTOR vstart=1000h
main: main:
mov bx, 156 mov ax, 0x0013
call print_sint int 0x10
;mov ax, -20 push es
;mov dx, 0x0003 push 0xa000
;mov cx, 10 pop es
;idiv cx
;mov bx, ax mov di, 0
;call print_uint
mov bx, 0
.c:
add bl, 1
.f:
mov byte [es:di], bl
add di, 1
cmp di, 0xFFFF
jnz .f
push bx
mov bx, 100
call sleep
pop bx
jmp .c
pop es
jmp $ ; Halt jmp $ ; Halt
; Libs ; Libs
%include "print_util.asm" %include "print_util.asm"
%include "time_util.asm"
; Data ; Data
HELLO_WORLD: HELLO_WORLD:

BIN
main.bin

Binary file not shown.

16
time_util.asm Normal file
View file

@ -0,0 +1,16 @@
sleep:
pusha
mov ax, bx
mov bx, 1000
mul bx
mov cx, dx
mov dx, ax
mov ah, 0x86
mov al, 0
int 0x15
popa
ret