kemalkemal
Member level 1
- Joined
- Jan 27, 2013
- Messages
- 38
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Activity points
- 1,672
Hi
this is my demo code in order to see whats going on when i use directives like dw or da.
when i animate it, as shown in the picture below, PCL is loaded with 0x05 normally ,
then one step later it is loaded with 0x4A and going somewhere else skipping string2 line.
why is that ?
(My final aim is to load some string into the program memory and then call them later in order to send an LCD.)
this is my demo code in order to see whats going on when i use directives like dw or da.
Code:
list p=16f877A
#include <p16f877A.inc>
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_OFF & _LVP_OFF & _CPD_OFF
ORG 0x000
nop
goto main
ORG 0x004
retfie
main
string1 dw "xxddd",0
string2 da "ddfsfdg"
movlw b'01000110'
goto main
END
then one step later it is loaded with 0x4A and going somewhere else skipping string2 line.
why is that ?
(My final aim is to load some string into the program memory and then call them later in order to send an LCD.)