LOC Expression
Specification:
@ | ← Expression |
Description:
Defines the new current location in memory. The assembler always places instructions and data in memory at the current location, incrementing the current location as needed. The symbol @ ("The location where we are at") can be used for the current location in an expression.
In user mode, the program has access to four segments in main memory:
Segment | Symbol | Start address | Use |
---|---|---|---|
Text Segment | #0 | Program and static data | |
Data Segment | Data_Segment | #2000000000000000 | variable Data |
Pool Segment | Pool_Segment | #4000000000000000 | |
Stack Segment | Stack_Segment | #6000000000000000 |