HP 48gII Advanced User's Reference Manual Page 505

Graphing calculator.

Syntax
Example
Reg=0.f
A=0.M
Reg=1.f
A=1.M
LC hhh..hhh
LC 80100
LA #1024
LA hhh..hhh
LCASC(x) chrs
LCASC(4) MASD
LAASC(5) ROCKS
LAASC(x) chrs
LC(x) Exp
LC(5)@Buf+Off
LA(x) Exp
Reg1=Reg2.f
A=B.X
Reg1Reg2EX.f
ABEX.W
Reg1=Reg1+Reg2.f
A=A+B.A
C+D.A
Reg1+Reg2.f
Reg1=Reg1-Reg2.f
A=A-B.A
C-D.A
Reg1-Reg2.f
Reg=Reg+Cst.f
A=A+10.A
A+10.A
Reg+Cst.f
A=A-10.A
Reg=Reg-Cst.f
A-FOO.A
Reg-Cst.f
RegSR.f
ASR.W
RegSL.f
ASL.W
Reg1=Reg1<Reg2.f
A=A<B.W
Reg1<Reg2.f
Reg1=Reg1>Reg2.f
A=A>B.W
Reg1>Reg2.f
RegSRB.f
BSRB.X
ASRC
RegSRC
RegSLC
BSLC
Reg1=Reg1&Reg2.f
A=A&B.X
A&C.B
Reg1&Reg2.f
Reg1=Reg1!Reg2.f
A=A!B.X
A!C.B
Reg1!Reg2.f
Notes
Sets the specific field of the register to 0
Sets the specific field of the register to 1
The number of nibbles loaded in the register is the number of characters
necessary to write the value. So LC #12 will be equivalent to LC 00C.
Note: the less significant nibble is loaded in the nibble P (as in the value of
the register P) of the register, the next one into nibble p+1 mod 16, and
etcetera.
Loads the hexadecimal value of x characters into C.
x must be between 1 and 8. See note on LC instruction
Loads the result of an expression into C or A, using x nibbles.
See note on LC instruction
Copies the value of a specific field of a register into the same field of
another register
Exchanges the value of 2 registers on the given field. Note: this is not valid
for the Fn fields
Adds the value of the specific field of one register to the other register.
Note: If Reg1 and Reg2 are the same, this is a multiply by 2 instruction
Note: This instruction is affected by the DEC/HEX mode only if the field
is not a F field and the registers are AB, BC, CD or AC.
The following instructions are also available (but not on the Fn fields):
f
A=B-A.
B=C-B.
f
C=A-C.
D=C-D.
see note on Reg1=Reg1+Reg2.f
Note 1: The Saturn processor is not able to add a constant greater than 16
to a register. If cst is greater than 16, MASD will generate as many
instructions as needed.
Note 2: Even if adding constants to a register is very useful, large values
should be avoided because this generates a large program. Prefer another
solution like LC(5) Cte A+C.A
Note 3: Adding a constant greater than 1 to a P, WP, XS or S field is a
bugged Saturn instruction (problem with carry propagation). Use these
instructions with care.
Note 4: After adding a constant greater than 16 to a register, the carry
should not be tested (because you do not know if the last generated
instruction generated the carry or not)
Note 5: You can put an expression instead of the constant (MASD must be
able to evaluate the expression strait away). If the expression is negative,
MASD will invert the addition in a subtraction and vice versa.
Note 6: Be careful when using subtraction; it's easy to be misled. A-5-6.A is
equivalent to A+1.A, not A-11.A because the instruction is: A-(5-6).A
Note 7: If using Fn fields, be careful if non nibble bounded masks are
used.
Shift register right by 4 bit on the specified field, set SB if bits are lost.
Note: this instruction is not available on the Fn fields
Shift register left by 4 bit on the specified field, set carry if bits are lost.
Note: this instruction is not available on the Fn fields
Shift register left by n bits (as defined by the value of Reg2) on the specified
field
Shift register right by n bits (as defined by the value of Reg2) on the
specified field
Shift register right by 1 bit on the specified field, set SB if bits are lost.
Circular right shift by 1 nibble
Circular left shift by 1 nibble
Logical and on the specified field
Logical or on the specified field
f
f
The Development Library 6-19 49g+

Comments to this Manuals

Symbols: 0 