# HP 48gII Advanced User's Reference Manual Page 503

Graphing calculator.

Advertisement

A block is enclosed in
and
{
The following instructions deal with blocks.
SKIPS instructions
{
...
}
...
SKIP {
}
...
SKIPL {
}
...
SKIPC {
}
...
SKC {
}
...
SKIPNC {
}
...
SKNC {
}
Test
...
SKIPYES {
}
Test
...
{
}
Test
...
{
}
Test
...
-> {
}
...
SKUB {
}
...
SKUBL {
}
...
STRING {
}
...
CODE {
}
STROBJ \$PROLOG {
/Test is the opposite of Test. For example if Test is
with the hardware register (
and
) cannot be inverted.
?SB=1
Once blocks are defined, special instructions can be used in them. The instructions called EXIT and UP allow
jumping to the end or to the beginning of a block.
These instructions
{
}
Note: in Saturn mode do not make confusion between EXIT and UP instructions, which are GOTOs, and EXIT
and UP after a test, which are GOYES's. EXIT and UP can jump to the beginning or to the end of an upper-level
block by specifying the number of blocks to exit, after the UP or EXIT instructions.
Note 1: EXIT1 is equivalent to EXIT, and UP1 is equivalent to UP.
Note 2: the same rules apply in ARM mode: EXITGE3 for example is a BGE for the exit label 3 blocks down
, and can be nested within another block.
}
Equivalents
Defines a block (generates no code)
...
GOTO .S
*.S
...
GOTOL .S
*.S
...
GOC .S
*.S
...
GOC .S
*.S
...
GONC .S
*.S
...
GONC .S
*.S
Test
GOYES .S
Test
GOYES .S
/Test
GOYES .S
/Test
GOYES .S
...
GOSUB .S
*.S
...
GOSUBL .S
\$/02A2C GOIN5 *.S
\$/02DCC GOIN5 *.S
...
}
\$(5)PROLOG GOIN5 .S
object)
,
,
?HST=0
?MP=0
?SR=0
EXIT
EXITC
EXITNC
?A=0.A EXIT
UP
UPC
UPNC
?A=0.A UP
These instructions
{
{
{
UP2
UP3
EXIT1
EXIT3
}
}
}
...
*.S
...
*.S
...
*.S
...
*.S
*.S
...
(to create a character string)
*.S
...
(to create a code object)
*.S
...
(to create a 'prolog – length'
*.S
, /Test is
?A<C.A
?A>=C.A
,
,
,
?XM=0
?SB=1
?HST=1
are equivalent to
*.Beginning
GOTO.End
GOC.End
GONC.End
?A=0.A ¨.End
GOTO.Beginning
GOC.Beginning
GONC.Beginning
?A=0.A ¨.Beginning
*.End
Are equivalent to
*.Beg3
*.Beg2
*.Beg1
GOTO.Beg2
GOTO.Beg3
GOTO.End1
GOTO.End3
*.End1
*.End2
*.End3
. The test instructions dealing
,
,
,
?MP=1
?SR=1
?XM=1
The Development Library 6-17

Advertisement

Table of Contents

49g+

Symbols: 0