;; illustrates vesa svga programming ;; some info from www.vesa.org and ;; www.geocities.com/dos2dev/Video_1/video_1.htm .model small .486 .stack 100h .data winfunc dd 0c0005ca3h .code ;; set vga mod 11ah mov ax,4f02h ; VESA BIOS extension function mov bx,11ah ; select 1280x1024, 16-bit color mode int 10h mov di,0a000h mov es,di mov dx,0 ; window number wind: mov ax,4f05h ; window offset select (bank select) mov bx,0 push dx int 10h pop dx ;; call winfunc (doesn't work yet) xor di,di mov cx,0ffffh ; fill window mov ax,0f800h lp0: stosw loop lp0 inc dx ; shift window (page) downards cmp dx,16 jne wind mov ah,1 ; key delay int 21h mov ax,0003h int 10h ; text mode mov ax,4c00h int 21h end