??? 11/26/08 23:49 Read: times |
#160332 - Right back to basics - really foundational stuff Responding to: ???'s previous message |
Marlon Foendoe said:
MOV DPTR, #TEXT TEXT: DB "Hello World", 13, 0When I load DPTR with text what happen then?? 'Text' is a Label; that is, a symbolic name for an address. Therefore the above code simply loads the address of the start of the string into the DPTR. It is equivalent to: MOV DPTR, #1234H ORG 1234H DB "Hello World", 13, 0(using no particular "real" assembler's syntax) What you subsequently do with the DPTR having loaded it with that address is, of course, entirely up to you... |
Topic | Author | Date |
Loading DPTR with ascii code | 01/01/70 00:00 | |
Used to? | 01/01/70 00:00 | |
Indirect addressing mode on text | 01/01/70 00:00 | |
How an assembler works | 01/01/70 00:00 | |
that is context sensitive! | 01/01/70 00:00 | |
It depends ... read the datasheet ... then guess | 01/01/70 00:00 | |
Right back to basics - really foundational stuff | 01/01/70 00:00 | |
The one thing it most certainly does not do... | 01/01/70 00:00 | |
Thanks!!![]() | 01/01/70 00:00 |