SMAC
LAC-26 Technical Reference Manual
4/29/2013 48
Command:
JPn
-- Jump to Command, Absolute --
Argument:
0 <= n <= 31
This command
causes
execution
of a
macro
to jump
to
the absolute
command
specified
by
'nÕ.
Commands
are
numbered
sequentially
starting
from
0.
If
'n'
is
specified
whereas
the
command would attempt to jump past the end of the macro, command
execution
will
resume as
i
f
the macro had ended.
Related Commands: JR
Command:
JRn
-- Jump to Command, Relative --
Argument:
0 <= n <= 31
This
command
causes
execution
of
a
macro
to
jump
to
the
command
specified
by
'n'
relative to the current command location. If 'n' is specified as zero, then this command will
jump
t
o
itself. If 'n' is specified
such
that
the
command
would attempt
to
jump
past the
end
of
the
macro,
command
execution
will
resume
as
if
the
macro
had
ended.
If
'n'
is
specified
such
that
the
command
would
attempt
to jump
to a
point
before
the
beginning
of
the
macro,
an
error
will
b
e
reported.
Related Commands: JP
Command:
LVn
-- Load Interrupt Vector 'n' --
Argument:
0 <= n <= 31
This command loads interrupt vector table entry 'n' with the contents of the low
8-bits
of
the
accumulator.
The
following
program
fragment
will
cause
execution
of
macro
"10"
upon
the
activation of digital input 0 (while a macro program is running).
MD1,AL10
; Load accumulator with number for macro "10".
MD2,LV0
; Load that number to interrupt vector 0.
MD3,EV0
; Enable interrupt vector 0.
MD10,MG"Input 0 was just activated.",RC
When input 0 is activated, the line "Input 0 was just activated." will be displayed.
Related Commands: DV, EV