Return to previous page Return to menu Go to next page

ORG

 
format ORG

Description Sets the value of to the location counter. The generated code is Assigned from address . must be an absolute expression whose value has already been determined.

[Example] <

BSEG,CSEG,DSEG,COMMON

 
Format BSEG CS DS COMMON

Description These instructions set the code relative address in the memory to the location counter. Unless the location value is changed by the ORG after the command , the location counter value is This is the last address of each segment. Segment The location counter value of each segment is initially set to the value set as an option at startup is converted to .

[Example] DSEG dw $ 0001 dw $ 0002 dw dw $ 0003 CS move d0, $ 8000 move d0 jp start


Return to previous page Return to menu Go to next page