4.3 ARM mode
For all user intents and purposes the ARM CPU has sixteen 32 bit registers noted R0 to R15 (R15 is also the
program counter, R14 is the link register (ie: a BL (GOSUB) instruction copies the return address in R14 before
jumping, a Return From Subroutine is performed by doing MOV PC, LR), and R13 is the Stack pointer).
Each instruction can be conditionally executed depending on the value of 5 flags.
Each instruction can be told to modify or not modify these 5 flags (add the S suffix to the instruction).
Please read the ARM ARM (ARM Architecture and Reference Manual) for more information.
Please look at the ARMSAT Saturn instruction and the ARM mode documentation to see the instruction set and the
rules of calling ARM code from Saturn code.
6-24 The Development Library
Stops the remote control (ON+S).
Wait for (C[A]/183) ms.
Return how many columns the screen contains in Ca
Sets the RTC time from C[W] in ticks.
Set number of lines of disp0 from C[B], refresh display.
Set offset of display inside disp0 in bytes from C[X]&7FF.
Return how many lines the screen contains. In Ca
Unconfigure the 4KB block containing the top 16-line header.
This will refresh the header on the display.
Emulates gettime function in ROM, and also updates the 8192Hz timer
Purpose:Get current time: (=NEXTIRQ)-Timer2
Return CS iff time appears corrupt.
Entry: Timer2 Running
Exit: Timer2 Running
CC - A:NEXTIRQ (ticks)
D:Timer2 (sgn extended ticks)
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)
Carry=1 on HP48, 0 otherwise.
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.
Carry=1 on HP49, 0 otherwise.
Reset the calculator (including the OS).
This code doesn't return, the calculator restarts at 00000000.
Force to refresh the header on the display.
- 003AA: AUTO_USER_TEST
- 003A3: MANU_USER_TEST
- 0039C: MANUFACTURE_TEST
- Other: signed index, OS-specific, see OS_API.doc.
SD Card functions (depending on P, see HP's vgeraccess for more details.
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