Product specifications

Type ASSEM 10 - Carriage return - CLS -Carriage return
The program can now be "RUN". The number in brackets in the USR function is the
address of the machine code, and needs to be re-calculated if the code is moved.
USR returns with the value of the BC register pair, which it.) this case, is assigned to
X. BC will be zero after execution of the routine.
Assembler Commands.
The assembler has only 4 different commands, L,E,T and an insert command which
works by default. The syntax for E, L and insert is :-
<command letter L,E> space <hexadecimal number> or <label>
Where command letter refers to L, E or in the case of insert no letter.
1) Any number used must be within the range of the code line.
2) Any label used must be contained within the current code line.
The space between the command letter and its operands is optional, but if the
command is used with a label then this may be misunderstood.
eg:- If you wish to edit the line DIOT then using E DIOT is ok but using EDIOT when
the label "EDIOT" exists will cause the assembler to insert lines before the label
EDIOT.
If no parameter is given with the command then the default is the current program line,
ie the line after the fast amended or inserted line. This can be quite useful when
switching between edit and insert modes.
The T command has no parameters and is used only to set the program line location
pointer to the start of the program.
Pseudo Ops.
Pseudo operations look like Z80 instruction mnemonics but are not. They are used to
define the contents of memory and reserve space.
There are only 3 pseudo operations in the MTX assembler, DB,DW,DS:
1) DB - Define byte.
This instruction is used to define the contents of a particular byte in memory. Its
arguments can be numeric, either decimal or hex, alphanumeric, or the low byte of a
label.
Eg:- <label>: DB <dec/hex No.> and/or "<string>" and/or <label>