it glowwwwwssss.
This commit is contained in:
parent
b42a2bda0c
commit
6fcf973a18
0
gfx_util.asm
Normal file
0
gfx_util.asm
Normal file
36
main.asm
36
main.asm
|
@ -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:
|
||||||
|
|
16
time_util.asm
Normal file
16
time_util.asm
Normal 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
|
Loading…
Reference in a new issue