Chapter 4 Assembly Language and Cross Assembler
This directive sets the location counter to
The subsequent code and data offsets
begin at the new offset specified by
The code or data offset is relative to the be-
ginning of the section where the directive
is defined. The attribute of a section determines
the actual value of offset, absolute or relative.
mov A, 1
In this example, the statement
mov A, 1
begins at location 8 in the current section.
[,name2:type [, ...]]
directive marks the variable or label specified by a name that is available to other
modules in the program. The
directive, on the other hand, declares an external vari-
able, label or symbol of the specified name and type. The type can be one of the four types:
(these three types are for data variables), and
(a label type and
used by call or jmp).
PUBLIC start, setflag
In this example, both the label
and the procedure
are declared as public vari-
ables. Programs in other sources may refer to these variables. The variable
is also de-
clared as external. There should be a source file defining a byte that is named
declared as a public variable.