EasyManua.ls Logo

HP 48GII

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...
6-8 The Development Library
Confidence interval statistics menu
Input: { { "String" Action } ... } THREE
Output: Modified list THREE
Finance menu
Input: { { "String" Action } ... } FOUR
Output: Modified list FOUR
Numeric solver menu
Input: { { "String" Action } ... } FIVE
Output: Modified list FIVE
Section 4 - ASM
The Machine Language and System RPL Compiler (MASD)
4.1 Introduction
4.1.1 Warnings
The operating system can not control what a low level program is doing. Therefore, any programming error is likely
to cause the calculator to crash (with potential memory lost). A careful developer will always save source code in the
internal flash ROM or port 1 for protection before trying low level programs.
This document does not intend to be a programming course – it just presents the syntax of the compiler. Ample
resources are available on the web (
HTUwww.hpcalc.orgUTH) to learn how to program the Saturn CPU in assembler, how to
program in System RPL or how to program in ARM assembly.
With the introduction of the new ARM based series of calculators, some new things have been included that are not
backward compatible with previous calculators. The careful programmer should be wary of this.
4.1.2 Starting MASD
To compile a program, put the source code on the level 1 of the stack and type!BDM (the development library must
be attached) or use the
!BDM menu of the Development library.
If you have a new version of MASD packaged as a library 259, the command to type is
$Zo (note the lowercase).
4.1.3 Modes
MASD can be used to compile program in 3 different languages: Saturn ASM, ARM ASM and System RPL.
Although some things are common to all modes, some are not. As a programmer, you should always know the
current mode.
Compilation directives instructions are used to switch from one mode to another:
•BDM (switch to Saturn ASM mode, referred in the rest of this document as the Saturn mode)
•K2E (switch to System RPL mode)
•BKM (switches to ARM ASM mode)
In addition, in RPL mode,
OL4<!
{!y)j)!s)!$j)!tG!BDM!ok()!
<=4OL4<!
Allows switching from RPL mode to Saturn mode (and generate an assembly program object)
4.1.4 Syntax
MASD expects a character string (called source) on the stack level 1.

Table of Contents

Other manuals for HP 48GII

Related product manuals