HP 48gII Advanced User's Reference Manual page 509

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

Advertisement

Syntax
Example
HST=1.x
?HST=1.x { }
SETFLD(1-7)
OFF
RPL2
KEYDN
CRTMP
BEEP2
REMON
SERIAL
OUTBYT
MOVEUP
MOVEDN
ARMSYS
ARMSAT
Notes
Sets bits in the HST register (XM=1, SB=1, SR=1 and MP=1 are also available).
Note: the program ST=0.0 SB=1 ?SB=0 { ST=1.0 } will set ST0 to 0 if
the calculator is non-emulated and to 1 if it is emulated.
Test for HST bits. See HST=1.x comments
See section 5.2.1
Turns the calculator off.
Simulates a LOOP (A=DAT0.A D0+5 PC=(A)).
(C[A]) kbd peeks with immediate rtn CS if keydn.
Also - Sets DOUSEALARM flag if [ON][9] sequence.
Entry: P=0, HEX Mode, C[A]: #kbd peeks (loop count)
Abstract: Creates a hole in the tempob area of the specified size
+ 6 (5 for the link field and 1 for marker nibble).
Sets the link field of the "hole" to size+6 and adjusts
AVMEM, RSKTOP and TEMPTOP.
Entry Conditions: RPL variables in system RAM
C(A) contains desired size of hole
Exit Conditions: carry clear, RPL variables in system RAM
D1 -> link field of hole, D0 -> object position
B(A), C(A)= desired size+6
Error Exits: Returns with carry set when there's not enough memory
to create a hole of size+6.
Entry: C[A]: d
;d=Beep duration (msec)
D[A]: f
;f=Beep frequency (hz)
P=0
Exit: CARRY:0
Enables the remote control mode (ON+R).
Copy serial number to address pointed to by D1 in Saturn memory.
Purpose: Send byte to IR printer
Entry: A[B]: Byte
Exit:
CC, P=0, Byte Sent
Alters: P:0, CARRY:0, SETHEX.
Abstract: Used to move block of memory to higher address.
No check is made to ensure that the source and destination do not overlap. Code is
moved from high to low addresses.
Entry Conditions: D0 -> end of source + 1
D1 -> end of destination + 1
C(A) = number of nibs to move (unsigned)
Exit Conditions: HEX mode, P=0, carry clear
D0 -> start of source
D1 -> start of destination
Abstract: Used to move block of memory to lower address.
No check is made to ensure that the source and destination do not overlap. Code is
moved from lower to higher addresses.
Entry Conditions: D0 -> start of source; D1 -> start of destination; C(A) = number
of nibs to move (unsigned)
Exit Conditions: P=0, carry clear; D0 -> end of source + 1; D1 -> end of
destination + 1
Call a function at global dword address C[0-7]&~3.
The function takes should be of the form: U32 f(U32 pc, Chipset* c) { /* put your
code here */ return pc; }
Call a function at Saturn address C.A&~7.
The function should have the following format:
U32 f(U32 pc, Chipset* c) { /* put your code here */ return pc; }
In RAM asm, this means that as you enter the function, pc is in R0, @Chipset is in R1
and the return address is in LP. R2 and R3 are free to use, and R0 should normally
not be modified except if you want to change the PC when exiting the function.
The Development Library 6-23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents