Origin

Two forms of the instruction are acceptable:

Form 1

Form 2

../../_images/origin-diag1.png ../../_images/origin-diag2.png

As shown above, the equals sign may appear in the “label” or the “code” field.

Description:

The assembler’s location counter is set to the value of ‘Exp’. The next machine instruction or data byte generated will be assembled at address ‘Exp’.

Label   Code    Operand
=       0
        JUN     LO
        =       512
LO,     LDM     7

The JUN instruction will be assembled in locations 0 and 1 of ROM or program RAM.
The location counter is then set to 512, causing the LDM instruction to be assembled at location 512, the first location on the second memory page.
The JUN will therefore cause a jump to location 512.

Note

The pseudo instruction also makes it possible to assemble constant data values into a program.
For a description of how to do this, !!!! see Section 3.2.2 !!!!