ibis-os/gfx_util.asm
2024-07-25 20:28:01 +03:00

21 lines
227 B
NASM

VMEM equ 0xA000
; di = y*320+x
; ah = reserved
; al = color
; bx = width
; cx = height
gfx_rect:
pusha
; Set es to VMEM
push VMEM
pop es
.loop:
mov [es:di], al
jmp .loop
popa
ret