1 ; vi:filetype=nasm ts=8 sts=8 sw=8:
6 ; initializes the video hardware and graphics routines
8 ; clears the framebuffer (not vmem)
11 ; copies the framebuffer to video memory
12 ; clobbers: ax, cx, di, si
15 ; set_palette_entry(idx[al], r[ah], g[bl], b[bh])
19 FRAMEBUF_SEG equ 09000h
21 REG_CRTC_STATUS equ 3dah
22 CRTC_VBLANK_BIT equ 08h
28 ; video mode 13h (320x200 8bpp)
62 mov dx, REG_CRTC_STATUS
65 and al, CRTC_VBLANK_BIT
69 and al, CRTC_VBLANK_BIT
77 inc dx ; dx <- REG_DAC_DATA