发表于:2004/10/1 19:57:00
#10楼
在定时中断中HC0的值还是无法传出,希望高手帮助,程序附后:
NETWORK 1 //NETWORK TITLE (single line)
//
//NETWORK COMMENTS
//
LD SM0.1
R Q0.0, 2
MOVB 16#F8, SMB37
MOVD +0, SMD38
HDEF 0, 0
HSC 0
NETWORK 2
LD SM0.0
CALL 0
NETWORK 3
MEND
NETWORK 4
SBR 0
NETWORK 5
LD SM0.0
MOVB 100, SMB34
ATCH 0, 10
ENI
NETWORK 6
RET
NETWORK 7
INT 0
NETWORK 8
LD SM0.0
MOVD HC0, VD10
NETWORK 9
RETI
NETWORK 1 //NETWORK TITLE (single line)
//
//NETWORK COMMENTS
//
LD SM0.1
R Q0.0, 2
MOVB 16#F8, SMB37
MOVD +0, SMD38
HDEF 0, 0
HSC 0
NETWORK 2
LD SM0.0
CALL 0
NETWORK 3
MEND
NETWORK 4
SBR 0
NETWORK 5
LD SM0.0
MOVB 100, SMB34
ATCH 0, 10
ENI
NETWORK 6
RET
NETWORK 7
INT 0
NETWORK 8
LD SM0.0
MOVD HC0, VD10
NETWORK 9
RETI