HP 48gII Advanced User's Reference Manual page 506

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

Syntax
Example
Reg1=Reg1^Reg2.f
A=A^B.X
A^C.B
Reg1^Reg2.f
Reg1=-Reg1.f
C=-C.A
Reg1=-Reg1-1.f
C=-C-1.A
C=~C.A
Reg1=~Reg1.f
RReg=Reg.f
R0=A.W
Reg=RReg.f
A=R0.A
RegRRegEX.f
AR0EX.A
Data=Reg.f
DAT1=C.A
DAT0=A.10
Data=Reg.x
Reg= Data.f
C=DAT1.A
A=DAT0.10
Reg Data.x
DReg=hh
D0=AD
D0=0100
DReg=hhhh
D0=80100
DReg=hhhhh
D0=(2)label
DReg=(2)Exp
D0=(4)lab+$10
DReg=(4)Exp
D1=(5)Variable
DReg=(5)Exp
Dreg=Reg
D0=A
Dreg=RegS
D0=CS
RegDRegEX
AD0EX
RegDRexXS
AD1XS
DReg=DReg+Cst
D0=D0+12
D1+25
DReg+Cst
D1=D1-12
DReg=DReg-Cst
D1-5
DReg-Cst
Please read the section on test above for information on what MUST follow a test instruction.
f can NOT be a Fn field.
?Reg1=Reg2.f
?A=C.B
?Reg1#Reg2.f
?A#C.A
?Reg=0.f
?A=0.B
?Reg#0.f
?A#0.A
?Reg1<Reg2.f
?A<B.X
?Reg1>Reg2.f
?C>D.W
?Reg1<=Reg2.f
?A<=B.X
?Reg1>=Reg2.f
?C>=D.W
?RegBIT=0.a
?ABIT=0.5
?ABIT=1.number
?RegBIT=1.a
6-20 The Development Library
Notes
Logical xor on the specified field
Mathematical not on the specified field
Logical not on the specified field
Sets the specified field of RReg to the value of the specified field of Reg
Only A and C are valid for Reg.
If f is W, the shorter encoding of the instruction is used
Sets the specified field of Reg to the value of the specified field of RReg
Only A and C are valid for Reg.
If f is W, the shorter encoding of the instruction is used
Exchanged the value of the specified field of RReg with the value of the
specified field of Reg Only A and C are valid for Reg.
If f is W, the shorter encoding of the instruction is used
Write the content of the specified field of the specified register in the
memory location pointed by Data register (POKE)
Reg can only be A or C
Read the content of the memory location pointed by Data register in the
specified field of the REG register (PEEK)
Reg can only be A or C
Change the first 2, 4 or all nibbles of the Data register with the given value
Reg can only be A or C
Sets the first 4 nibbles of Dreg with the 4 first nibble of Reg
Reg can only be A or C
Reg can only be A or C
Exchange the first 4 nibbles of Dreg with the 4 first nibble of Reg
Reg can only be A or C
Note 1: The Saturn processor is not able to add a constant greater than 16
to a register but 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, big constants
should be avoided because this will slow down execution, and generate a
big program.
Note 3: After adding a constant greater than 16, the carry should not be
tested.
Note 4: 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 5: Be careful when using subtraction; it's easy to be misled. D0-5-6.A
is equivalent to D0+1.A, not D0-11.A
The HP special character can also be used
The HP special character can also be used
The HP <= character can be used
The HP >= character can be used
Test if a specific bit of A or C register is 0 or 1
Reg must be A or C

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents