.org

Changes the location-counter value, relative to the base of the current section.

  .org expression
  
  
Parameter

expression

New value for the location counter; must be greater than the current location-counter value.

Remarks

Addresses of subsequent assembly statements begin at the new expression value for the location counter, but this value is relative to the base of the current section.

Example

The label Alpha reflects the value of .text + 0x1000. If the linker places the .text section at 0x10000000, the runtime Alpha value is 0x10001000.

Listing: Address-Change Example
.text

.org 0x1000

Alpha:

...

blr
Note: You must use the CodeWarrior IDE and linker to place code at an absolute address.