4. Source files and file extensions¶
Common to all text source files are that they are expected to be in UTF-8, which is backwards compatible with the ASCII character set. For non-ASCII characters, UTF-8 uses multibyte sequences with the highest bit set (which is unused in ASCII). Thus, it is possible to type a character such as Σ or μ 1 which are not present in ASCII. See Alpha strings for available special characters.
Unfortunately the HP-41 character set uses some very special characters, known as the hangman characters that is not available in UTF-8. If you want to use such characters, you will need to resort to using numeric constants or hex escape sequences, as they cannot be typed.
Footnotes
- 1
When such character is used in a character or string literal, it will be translated to the corresponding HP-41 character, or LCD character depending on the context. Unicode characters can also be used in back quoted symbols.
4.1. File extensions¶
The following table lists file extensions used with the tools.
Extension |
Purpose |
|---|---|
|
Assembler source |
|
Object file |
|
Library (collection of object files) |
|
List file |
|
Linker rules file |
|
Module description (XML) |
|
Module exports (XML) |
|
HP-41 module format (binary output), packed 10-bit word representation |
|
HP-41 module format (binary output), 16-bit words representation for NEWT |
|
HP-41 ELF output (binary output) |
|
Module page as raw data (16-bit words) |
|
RPN binary images (raw bytes) |
|
RPN source program |