jakeselectronics
Member
Hey everyone, I would like to double check something here,
Can someone please tell me how many cycles this snippet of code would take to exectue....
I worked it out to be 500 cycles include the CALL & RETURN.
Is that about right?
Can someone please tell me how many cycles this snippet of code would take to exectue....
Code:
MOVLW D'123' ;
CALL DELAY ;
(continue...)
DELAY
MOVWF DELAYGPR1 ;
DECFSZ DELAYGPR1, W ;
GOTO $-2 ;
BSF STATUS, RP0 ;
BSF TRISA, 4 ;
BCF STATUS, RP0 ;
BSF INTCON, GIE ; Enable Interrupts
RETURN
I worked it out to be 500 cycles include the CALL & RETURN.
Is that about right?