Reference Guide
The Development Library 6-29
Syntax Example Notes
SETOFFD
Set offset of display inside disp0 in bytes from C[X]&7FF.
HSCREEN
Return how many lines the screen contains to Ca.
UNCNFGD
Unconfigure the 4KB block containing the top 16-line header.
This will refresh the header on the display.
GETTIME
Emulates gettime function in ROM, and also updates the 8192Hz timer
accordingly.
Purpose: Get current time: (=NEXTIRQ)-Timer2
Return CS iff time appears corrupt.
Entry: Timer2 Running
Exit: Timer2 Running
CC - A:NEXTIRQ (ticks)
C:Time (ticks)
D:Timer2 (sign extended ticks)
P:0, HEX
CS - Same as the non-error case but the time system
is corrupt because of one of:
(1) TIMESUM # CRC(NEXTIRQ) -- CheckSum Error
(2) TIMER2 was not running on entry.
(3) Time not in range: [BegofTime, EndofTime)
MIDAPP?
Carry=1 on HP 48gII, 0 otherwise.
CONFIGD
Configure a 4KB block containing the top 16-line header.
C.A = Start address of the block (must be multiple of 4KB).
If already configured, unconfig, refresh and re-config.
BIGAPP?
Carry=1 on HP 49g+ or 50g, 0 otherwise.
RESETOS
Reset the calculator (including the OS).
This code doesn’t return, the calculator restarts at 00000000.
REFRESHD
Force to refresh the header on the display.
AUTOTEST
- 003AA: AUTO_USER_TEST
- 003A3: MANU_USER_TEST
- 0039C: MANUFACTURE_TEST
- Other: signed index, OS-specific, see OS_API.doc.
ACCESSSD
SD Card functions (depending on P, see HP’s vgeraccess for more details.
PORTTAG?
Return port number depending on tag name.
Entry: D1: name (size+chars)
Exit: A[A]: port number (0-3)
D1: after name
Carry: clear if ok, set if wrong name