06-25-2015, 06:05 AM
and I really dont want my code looking from this
to something this magnitude of mess
also I'm having a hard time editing my text on the rich texteditor blinking out randomly even on my laptop and those are copied from a code generated result
Code:
CLRF PORTB
MOVLW B'01000000'
MOVWF PORTB
<delay code> ;0.5second delay
CLRF PORTB
MOVLWB B'10000000'
MOVWF PORTB
<delay code> ;0.5second delay
goto FwC
to something this magnitude of mess
Code:
CLRF PORTB
MOVLW B'01000000'
MOVWF PORTB
cblock
d1
d2
d3
endc
;499994 cycles
movlw 0x03
movwf d1
movlw 0x18
movwf d2
movlw 0x02
movwf d3
Delay_0
decfsz d1, f
goto $+2
decfsz d2, f
goto $+2
decfsz d3, f
goto Delay_0
;6 cycles
goto $+1
goto $+1
goto $+1 ;0.5second delay
CLRF PORTB
MOVLWB B'10000000'
MOVWF PORTB
cblock
d1
d2
d3
endc
;499994 cycles
movlw 0x03
movwf d1
movlw 0x18
movwf d2
movlw 0x02
movwf d3
Delay_0
decfsz d1, f
goto $+2
decfsz d2, f
goto $+2
decfsz d3, f
goto Delay_0
;6 cycles
goto $+1
goto $+1
goto $+1 ;0.5second delay
goto FwC