Hi All, I'm facing a problem with assembly coding here..
CSEG AT 0100H LABEL: DB "TESTING TESTING 1 2 3]" TRANS: MOV DPTR,#LABEL ;load data pointer with LABEL's address MOV R0,DPL LJMP SEND_TO_TXD CLR TI RET SEND_TO_TXD: CLR TI MOV SBUF,@R0 INC R0 JNB TI,$ CJNE @R0,#']',SEND_TO_TXD RET
"Can characters defined under code segment simply be displayed like this?" No, the only (conventional) way to access code memory is using MOVC. "Is certain part of the memory only meant for code, and certain part only meant for data?" Yes, @RO (and @R1) only access internal data memory. MOVX is used to access memory classified as "external" data memory.