EasyManua.ls Logo

HP 48GII - Page 507

HP 48GII
653 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The Development Library 6-21
Syntax Example Notes
B[2O!
O[2O!
2O[B!
2O[O!
B2O<T!
O2O<T!
2O[-B/!
2O[-O/!
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
DS[8!
TM[8!
DK[8!
M2[8!
;D:[8d$!
bDS[8!
bTM[8!
bDK[8!
bM2[8!
b;D:[8d$!
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
DS[3!
TM[3!
DK[3!
M2[3!
;D:[$!
bDS[3!
bTM[3!
bDK[3!
bM2[3!
b;D:[3d$!
See above. This is only valid in emulated Saturn
2[$!
2[2'3!2'3!!
2[203!203!
b2[$!b2g$!
2[Od$!O[2d$!!
O2<Td$!
O[O'2'3!O'2'3!
The HP special character can be used instead of #
>L:L!u$%)u!
>L:LE!u$%)u!!
>LEL=>!E$%!
>LNE=>!y)?!
>LNE=>![E$%)u!
>LNE=>![IOLM=4I!
>LD5S!u$%)u!
>LD5SE!u$%)u!
>LDSNE!y)?!
>LDSNE![E$%)u!
>LDSNE![IOLM=4I!
>LO!u$%)u!
>L=O!u$%)u!
>L:LO!u$%)u!
>L:L=O!u$%)u!
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 }
K:=!
K:=DTM!
K:=OO!
K:=DO!
K:=O!
K:==O!
K:6!
!
K:=P<D!K:P!
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)
O[KD:r!
KD:r[O!
Pop value from RSTK in Ca
Push value from Ca in RSTK
L5:[OD!
L5:[O!
B[6=!
O[6=!
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)

Table of Contents

Other manuals for HP 48GII

Related product manuals