| ??? 08/03/01 14:35 Read: times |
#13799 - when to use "CSEG" segment directive |
I start to code in 8051 Assembly language. One simple program:
ORG 0000H LJMP START ORG 0100H START: MOV A, #01H SJMP $ The above program can successfully generate .obj and .hex files. My confusion is: Does "ORG 0000H" mean the internal code address or does it can also represent data address? To make it refer to the code address, I should add "CSEG AT 0" before "ORG 0000H" Is that so? If "CSEG AT 0" should be added, why the above program can be successfully assembled? Look for your guidance, Thx! |
| Topic | Author | Date |
| when to use "CSEG" segment directive | 01/01/70 00:00 | |
| RE: when to use "CSEG" segment directive | 01/01/70 00:00 | |
| RE: when to use "CSEG" segment directive | 01/01/70 00:00 | |
| RE: when to use "CSEG" segment directive | 01/01/70 00:00 | |
RE: when to use \ | 01/01/70 00:00 |



