By code I meant a section of your program.
For example, the two sections below are identical, the first section is just pasted into this message, the second is pasted between code tags (box 5 in the line above the message entry window).
Just pasted:
;delay by programmed period (ABDelay * 100mS) before transmitting
AntiBounce
movf ABDelay,W ;retrieve the anti-bounce value
movwf DelayTimer ;number of times 100mS delay is repeated
ABLoop
call Delay100m
decfsz DelayTimer,F ;more loops needed?
goto ABLoop
;send the preamble of 0x55 followed by a three bit low then high
Preamble
banksel PORTA
bsf TxEn ;transmitter carrier on
bsf LED_A ;flash green LED while transmitting
bcf LED_B
movlw 0x28 ;bit counter
movwf ShiftCount
PreambleLoop
bsf TxPin ;TX pin high
Pasted between code tags:
Code:
;delay by programmed period (ABDelay * 100mS) before transmitting
AntiBounce
movf ABDelay,W ;retrieve the anti-bounce value
movwf DelayTimer ;number of times 100mS delay is repeated
ABLoop
call Delay100m
decfsz DelayTimer,F ;more loops needed?
goto ABLoop
;send the preamble of 0x55 followed by a three bit low then high
Preamble
banksel PORTA
bsf TxEn ;transmitter carrier on
bsf LED_A ;flash green LED while transmitting
bcf LED_B
movlw 0x28 ;bit counter
movwf ShiftCount
PreambleLoop
bsf TxPin ;TX pin high
You can see how it makes the code much easier to read. Ignore the content of my program, it's just something I copied as an example.
Brian.