一下是西門(mén)子自由空間通訊程序,請(qǐng)高手指點(diǎn)下,看有問(wèn)題沒(méi)有?
主程序:
LD SM0.1
MOVB 16#09, SMB30
MOVB 16#B0, SMB87
MOVB 16#0A, SMB89
MOVW 5, SMW90
MOVB 100, SMB94
ATCH INT_0:INT0, 23
ATCH INT_1:INT1, 9
ENI
RCV VB100, 0
中斷0:
LDB= SMB86, 16#20
MOVB 10, SMB34
ATCH INT_1:INT1, 10
CRETI
NOT
RCV VB100, 0
中斷1:
LD SM0.0
DTCH 10
XMT VB100, 0