beautypg.com

Acrosser AR-B9622 User Manual

Page 39

background image

AR-B9622 User¡¦

s Guide

5-5

(2) Lock Configuration Register

mov

al, 013h

out

22h, al

nop

nop

mov

al, 000h

out

23h, al

nop

nop

(3) Read the Value at Configuration Register

For example, read INDEX 3Ch:

Unlock configuration register

mov

al, 03ch

out

22h, al

nop

nop

in

al, 23h

nop

nop

push

ax

Lock configuration register

pop

ax

; AL - result

(4) Write Data to Configuration Register

For example, write 0FFh to INDEX 3Bh:

Unlock configuration register

mov

al, 03bh

out

22h, al

nop

nop

mov

al, 0ffh

out

23h, al

nop

nop

Lock configuration register