8772某芯片
1.开启superIO芯片地址入口
2.LDN address,逻辑设备号入口07H
3.LDN =01 device,reading index point info
4. source code
DATAS SEGMENT
;此处输入数据段代码
DATAS ENDS
STACKS SEGMENT
;此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
mov dx,2eh;address port
mov al,87h
out dx,al
mov al,01h
out dx,al
mov al,55h
out dx,al
mov al,55h
out dx,al
mov al,07h;LDN address
out dx,al
mov al,01h;LDN=01H
out 2fh,al;data port ,al value into 2fh port
mov al,61h;index=61H
out dx,al
in al,2fh;2fh value storage al
mov bl,al
;high to display
and al,0f0h
mov cl,4
shr al,cl
add al,37h
mov dl,al
mov ah,02h
int 21h
;low to display
and bl,0fh
add bl,30h
mov dl,bl
mov ah,02h
int 21h
MOV AH,4CH
INT 21H
CODES ENDS
END START