21 lines
227 B
NASM
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 |