oscillator_1
02-14-2006, 01:42 AM
Hi,
I have a ASM file that I assembled.
Only problem is that it skips Label_0008 & Label_0009.
It keeps sending the reply in Label_0005.
It has to reply to 00 C0 00 12 which is sent at 3 different intervals.
The 1st reply needs to be Label_0008
The 2nd reply needs to be Label_0009
The 3rd reply needs to be label_0005
The error I think is in BOLD
Label_0005 CALL Label_0007
CALL Label_0007
MOVF 0x4D , f
BTFSC STATUS , Z
GOTO Label_0008
BTFSC 0x4D , 00
GOTO Label_0009
MOVLW 0xC0
CALL Label_0002 Transmit
MOVLW 0x85
CALL Label_0002 Transmit
MOVLW 0x10
GOTO Label_0004
I will atatch the ASM file and what it does
Hepl would be appreciated.
I have a ASM file that I assembled.
Only problem is that it skips Label_0008 & Label_0009.
It keeps sending the reply in Label_0005.
It has to reply to 00 C0 00 12 which is sent at 3 different intervals.
The 1st reply needs to be Label_0008
The 2nd reply needs to be Label_0009
The 3rd reply needs to be label_0005
The error I think is in BOLD
Label_0005 CALL Label_0007
CALL Label_0007
MOVF 0x4D , f
BTFSC STATUS , Z
GOTO Label_0008
BTFSC 0x4D , 00
GOTO Label_0009
MOVLW 0xC0
CALL Label_0002 Transmit
MOVLW 0x85
CALL Label_0002 Transmit
MOVLW 0x10
GOTO Label_0004
I will atatch the ASM file and what it does
Hepl would be appreciated.