(Look-up Table Data Register - LTDR) - 4


; - 3D4h

mov dx,es:[463h]

; 1,

; 1

; 3BAh, 3DAh

add dx,6

pop es

;

in al,dx

nop

nop

; D3 ,

;

test al,08h

jz wait_on

wait_off:

in al,dx

nop

nop

test al,08h

jnz wait_off

wait_on:

in al,dx

nop

nop

test al,08h

jz wait_on

;

;

mov dx,3C8h

;

;

mov ax,1

out dx,al

;

nop

nop

; DS:SI ,

;

mov ax,seg_table

mov ds,ax

mov si,off_table

; 256 ( 3 )

mov cx,(256 * 3)

; ( 3C9h)

mov dx,3C9h

cld

;

get_reg:

lodsb

out dx,al

nop

nop

loop get_reg

; DS

pop ds

leave

ret 4

ENDP SETVGADAC

ENDS VGA_TEXT

END