SMAC
LAC-26 Technical Reference Manual
4/29/2013 39
Related Commands: AR
Command:
RBn
-- Read Byte (8 bits) at RAM location 'n'
Argument:
0 <= n <=
2047
This command reads the 8 bit value at internal RAM location 'n' and copies
it
to
the
low
8-
bits of the accumulator while clearing the upper 24 bits.
Related Commands: RW, RL, WB, WL, WW
Command:
RLn
-- Read Long (32 bits) at RAM location 'n' --
Argument:
0 <= n <=
2046
This command
reads the
32
bit
value
at
internal
RAM
location
'n'
and
copies
it
to
the
accumulator. The value specified by 'n' must be evenly divisible by 2.
Related Commands: RB, RW, WB, WL, WW
Command:
RWn
-- Read Word (16 bits) at RAM location 'n' --
Argument:
0 <= n <=
2046
This command reads the 16 bit value
at
internal
RAM
location
'n' and
copies
it
to
the
low
16-bits of the
accumulator
while
clearing
the upper
16
bits.
The
value
specified
by
'n'
must
b
e
evenly divisible by 2.
Related Commands: RB, RL, WB, WL, WW
Command:
SLn
-- Shift Accumulator Left 'n' bits --
Argument:
0 <= n <= 31
This command causes the
accumulator
to
be
shifted left
'n'
bits
while
filling
the low
order
bits with zero.
Related Commands: SR
Command:
SRn
-- Shift Accumulator Right 'n' bits --
Argument:
0 <= n <= 31
This command causes the accumulator to be shifted right 'n' bits while filling the high
order
bits with zero.