Post Reply 
HP48GX - Simple Program Question
08-29-2019, 10:00 AM (This post was last modified: 08-31-2019 05:44 AM by Giuseppe Donnini.)
Post: #4
RE: HP48GX - Simple Program Question
(08-28-2019 09:45 PM)rprosperi Wrote:  [...] though there could be a line limit of 255 or something high like that [...]

The maximum decompilation width is indeed 255. The System RAM variable DcompWidth which holds the pertinent information, is two nibbles wide, allowing for values between 0 and FF hex or 255 decimal.

DcompWidth is set by the Primitive Code Object !DcompWidth which takes a system binary integer (5 nibbles) as an argument, but only the two least significant nibbles of the latter are taken into account:


        D0=(5)  =DcompWidth   
        DAT0=A  B               * with A[A] containing the body of the bint


Or, to put it differently, any argument for !DcompWidth is taken modulo 256 while being written to DcompWidth.

[DcompWidth is located at address #70770h in the HP-48SX, and at address #808EEh in the HP-48GX; !DcompWidth is a supported entry point at #1795Ah.]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP48GX - Simple Program Question - Giuseppe Donnini - 08-29-2019 10:00 AM



User(s) browsing this thread: 1 Guest(s)