Development Library (HP-49 only)
 

The Development Library is library number 256 on the HP49G.  This library is not attached by default, so in order to use it, you have to type 256 ATTACH.  This command can be placed in a STARTUP program on the calculator. (The startup program is launched after each warmstart, so that the library is reattached).

In the DEFAULT.e49 EMU RAM file furnished with Debug4x, there is a STARTUP program which does this task:

:: 256 xATTACH 257 xATTACH ;

The 256 Library contains the following commands:

APEEK #adr -> #value: gives the 5 nibble value stored at the specified address
ASM-> CODE/ #StartAdr #EndAdr -> string: de-sasm an assembly program or from an address to an other
A-> #adr -> object: push on the stack the object stored at the specified address
->A object -> #adr: gives the address of an object
A->H #adr -> string: gives a string representation of an address
H->A string -> #adr: gives the address represented by a string
CD-> CODE -> string: gives a string representation of an assembly code
->CD string -> CODE: reverse operation
COMP->   composite -> N objects: INNERCOMP
CRC string -> #CRC: gives the CRC of the string (minus the 4 last nibbles)
CRLIB create a library
->H object -> string: gives the memory representation of an object
H-> string -> object: reverse operation
S->H string -> string: gives the memory representation of the contents of a string
H->S string -> string: reverse operation
LC~C Long complex/complex -> complex: Long Complex: converts a complex in a long complex and vice-versa
LR~R real/long real -> long real/real: converts a long real in a real and vice-versa
PEEK #adr #size -> string: gives the memory contents at the address on size nibbles
POKE #adr string ->: write n nibbles in memory starting at the specified address
R~SB system binary/real -> real/system binary: converts a real in a system binary and vice-versa
SB~B system binary/binary integer -> binary integer/system binary: converts a system binary in a binary integer and vice-versa
SREV string -> string: reverse the order of the chr in a string
S~N string/ID -> ID/name: converts a name in a string and vice-versa
->ALG convert a composite in an algebraic
->LST convert a composite in a list
->PRG convert a composite in a program
->RAM copy an object into RAM even if it was a ROM based object.