How do I use the DW directive?
Kenneth Kramer
Posts: 11
Hi,
where do I place the DW directive in my source code, and how do I retrieve data·defined by this directive?
TIA,
Kenneth
where do I place the DW directive in my source code, and how do I retrieve data·defined by this directive?
TIA,
Kenneth
Comments
Use IREAD to get the data into your program.
Bean.
The DW directive only works in the code section, i.e. the DW directive should only be placed· after an ORG that references program memory. Please
find attached, a snippet from my SX book, where I explain DW and the IREAD instruction.
I hope that this makes clear how the DW directive works, and how you can retrieve data defined with DW directives.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
Günther