Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
; in: bl = background color
draw_back:
pusha
mov ax,0xa000 ; set es to segment to write directly to the screen
mov es,ax
mov di,64000 ; 64000 = 320 * 200 = num of pixels in mode 13h
.do:
mov byte[es:di],bl ; write pixel
dec di
jnz .do
popa
ret
Tried it, very fast, but is there any way one can set the palette in mode 13h because I tried the ah=0x0b bh=0x01 bl=color int 0x10 and it didn't work?
assembler01 wrote:Tried it, very fast, but is there any way one can set the palette in mode 13h because I tried the ah=0x0b bh=0x01 bl=color int 0x10 and it didn't work?