Ayne
New Member
How can i call a program that is in another assembly file.
I mean;
Our main program file in which we are working.
Our another file that has libraries(like delay, serial port, etcetc).
Now how can i call a delay routine in our main working file???
I mean;
Our main program file in which we are working.
Code:
main
movlw .255
movwf PORTB
Call delay
movlw .0
movwf PORTB
call delay
Goto $ - 6
End.
Our another file that has libraries(like delay, serial port, etcetc).
Code:
delay
movlw 255
movwf i ;our variable i
DecFSZ i, F
Goto $ - 1
return
Now how can i call a delay routine in our main working file???