ibis-os/gfx_util.asm

21 lines
227 B
NASM
Raw Normal View History

2024-07-25 17:28:01 +00:00
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