HP 48gII Advanced User's Reference Manual page 507

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

Advertisement

Syntax
Example
A=PC
C=PC
PC=A
PC=C
APCEX
CPCEX
PC=(A)
PC=(C)
SB=0
XM=0
SR=0
MP=0
HST=0.a
?SB=0
?XM=0
?SR=0
?MP=0
?HST=0.a
SB=1
XM=1
SR=1
MP=1
HST=a
?SB=1
?XM=1
?SR=1
?MP=1
?HST=1.a
P=a
P=P+1 P+1
P=P-1 P-1
?P=a ?P#a
P=C.a C=P.a
CPEX.a
C=C+P+1 C+P+1
GOTO label
GOTOL label
GOLONG Lab
GOVLNG hex
GOVLNG =Label
GOVLNG ="COMND"
GOSUB label
GOSUBL label
GOSBVL hex
GOSBVL =Label
GOSBVL ="COMND"
GOC label
GONC label
GOTOC label
GOTONC label
RTN
RTNSXM
RTNCC
RTNSC
RTNC
RTNNC
RTI
RTNYES RTY
C=RSTK
RSTK=C
OUT=CS
OUT=C
A=IN
C=IN
Notes
Sets Aa or Ca to the address of the next instruction
Set PC to the value contained in Aa or Ca
Exchange the value of PC with register Aa or Ca
Sets PC to the value read at the address contained in Aa or Ca
SB, XM, SR and MP are 4 bits in the HST register. They can be set to 0 by
the specific instruction and tested.
SB is set to 1 by RegSR and RegSRB instruction, XM by RTNSXM
instruction and SR and MP should always be 0 (hardware related stuff).
HST=a sets all bits set to 1 in a to 0 in the HST register.
?HST=a test that all bits set to 1 in a are 0 in the HST register
See above. This is only valid in emulated Saturn
The HP special character can be used instead of #
GOTO is limited to 1kb jumps
GOTOL can jump over 16KB of code
this jump to a specific address
GOSUB is limited to 1kb jumps
GOSUBL is limited to &6kb jumps
GOSBVL jumps to a specific address
GO if Carry set (limited to 64byte)
GO if no carry (limited to 64 bytes)
Equivalent to SKNC { GOTO label }
Equivalent to SKC { GOTO label }
Return from subroutine (GOSUB call)
RTN + XM=1
RTN + set carry
RTN + clear carry
RTN if carry set
RTN if carry not set
Return from interrupt
Return if test true (see test section)
Pop value from RSTK in Ca
Push value from Ca in RSTK
Set the first 2 nibbles of the OUT register to the value of Cb
Set the OUT register to the value of C4
Copy the IN register in Ax or Cx (bugged instruction, do not use if you do
not know what you are doing)
The Development Library 6-21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents