
386SX Single Chip PC Jan Yin Chan Electronics Co.,LTD.
DM&P M6117D : System on a chip
Page 110
Jan Yin Chan Electronics Co,. LTD. M6117D 386SX Single Chip PC
8F-1,No.22,Wuchyuan 2RD.,Hsin Chuang city Taipei Hsien, Taiwan, R.O.C. Tel: 886-(02) 2298-0770 Fax: (02) 2299-1883
Example F: How to check M6117D hardware version.
; Please use TASM to compiler the following program.
; Execute under DOS environment.
;
.286
.model small
.code
Start proc c
mov ax,0c513h ; Unlock configuration register
call writechip
mov ax,0036h
call readchip ; Bit 2,1,0 = 010 b
and al,00000111b
cmp al,00000010b
je setflag
stc ; If Error return carry flag is 1.
jmp exitdos
setflag:
clc ; if OK return carry flag is 0.
exitdos:
mov ax,4c00h
int 21h
endp
readchip proc c
out 22h,al
nop
nop
in al,23h
nop
nop
ret
endp
writechip proc c
out 22h,al
nop
nop
xchg ah,al
out 23h,al
nop
nop
xchg ah,al
ret
endp
end
Comentários a estes Manuais