| ??? 09/22/07 05:26 Read: times |
#144908 - Am I doing wrong? Responding to: ???'s previous message |
Hello, I was trying to use DSEG and CSEG but I'm having some trouble, please take a look:
dseg
DL: db 1
DH: db 1
cseg
mov a,DL ;Just for test
end
Compiler says:
MCS-51 Family Macro Assembler ASEM-51 V1.3
dsegtest.asm(2): only allowed in CODE segment
dsegtest.asm(3): only allowed in CODE segment
2 errors detected
I though "OK, if it is just in code segment, then, put on code segment"
cseg
DL: db 1
DH: db 1
mov a,DL ;Just for test
end
Compiler says:
MCS-51 Family Macro Assembler ASEM-51 V1.3
dsegtest.asm(5): segment type mismatch
1 error detected
What I'm doing wrong? Thanks. |



