(newRPL) Hex dump
|
10-29-2021, 09:33 PM
Post: #1
|
|||
|
|||
(newRPL) Hex dump
Curious about internal representation of newRPL objects but can't stand reading code?
Retroengineering is your hobby? Here's a quick aid for your investigation, meet HEXDUMP: given an object it will return its size and the classic hex dump divided in 8 bytes chunks (a small font is advised). E.g. 1_mm HEXDUMP Code:
Enjoy! Code:
|
|||
11-02-2021, 02:27 PM
Post: #2
|
|||
|
|||
RE: (newRPL) Hex dump
This may very well be the first contribution in this library that works exclusively on newRPL!
Program is great, perhaps one suggestion: How about 2 lines per 8 bytes? The first one as you have it, with individual bytes and text, and then immediately below just add another line showing the same 8 bytes but grouped in two 32-bit words. Because everything is word aligned, you'll never be wrong, and it's much easier for example to identify a prolog of an object by looking at the first word than looking at individual bytes. Another suggestion: "smart" recognition of a real number prolog, then only for real numbers you can show the 32-bit words above in decimal instead of hex. It will nicely show all the digits of the number stored in memory, as well as the exponent. Anyway, just some ideas, keep up the good work! |
|||
11-02-2021, 09:14 PM
Post: #3
|
|||
|
|||
RE: (newRPL) Hex dump
(11-02-2021 02:27 PM)Claudio L. Wrote: This may very well be the first contribution in this library that works exclusively on newRPL! Actually the second... long ago I posted a small library which did a little trick with keyboard assignments and complex numbers Quote:Program is great, perhaps one suggestion: Nice idea, I'll work on it! |
|||
11-05-2021, 08:09 PM
Post: #4
|
|||
|
|||
RE: (newRPL) Hex dump
(11-02-2021 09:14 PM)JoJo1973 Wrote: Actually the second... long ago I posted a small library which did a little trick with keyboard assignments and complex numbers I stand corrected! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)