APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
S5U1C88000C MANUAL II
EPSON
253
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
B.3.4 Location Counter Control Pseudo-Instruction
The location counter control pseudo-instruction is as follows:
ORG
Name:
ORG
.....Changing of location counter value
Format:
ORG <expression>
Functions:
This instruction is used to specify addresses where program has been placed. <expression> must be a
relative value from a label within the current program section. At this time, an attempt to insert an
absolute address into the program counter results as an error.
Length of the expression can be defined up to a 6 digit hexadecimal number, and an error occurs if 7
digits or more has been defined.
Examples:
sizstk
equ
200h
;
The stack size is 512 bytes
topstk:
;
Reserves space for the stack
org
sizstk
Related items:
CODE, DATA