Post Reply 
[HP35S] Disassembling ROM
02-24-2015, 02:45 PM
Post: #10
RE: [HP35S] Disassembling ROM
(02-24-2015 01:46 PM)Thomas Ritschel Wrote:  What makes me puzzling is why these values are stored in the HP 35S in ASCII format and not as binary or BCD numbers...
Perhaps the compiler/assembler used didn't natively support the numerical data format used by those libraries, so that it would have been difficult to write those constants in the source code. If the data would have to be converted into another representation before it could be used, it wouldn't have harmed to store them in ASCII strings, anyway. ASCII strings of (almost) arbitrary length are supported by virtually all computer languages.

Another possibility might be that these numbers were meant to be patchable. It is quite common to store such numbers or strings in some easy recognizable and parsable format in binaries, so that they can be changed later on without having to recompile the sources, often even without having access to the sources (f.e. by OEMs or end-users).

Greetings,

Matthias


--
"Programs are poems for computers."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[HP35S] Disassembling ROM - Tugdual - 02-21-2015, 12:30 PM
RE: [HP35S] Disassembling ROM - Tugdual - 02-22-2015, 10:26 AM
RE: [HP35S] Disassembling ROM - Dieter - 02-22-2015, 12:07 PM
RE: [HP35S] Disassembling ROM - matthiaspaul - 02-24-2015 02:45 PM
RE: [HP35S] Disassembling ROM - Tugdual - 02-24-2015, 04:43 PM
RE: [HP35S] Disassembling ROM - Han - 02-24-2015, 04:56 PM
RE: [HP35S] Disassembling ROM - Tugdual - 02-24-2015, 06:48 PM
RE: [HP35S] Disassembling ROM - Tugdual - 02-22-2015, 02:43 PM
RE: [HP35S] Disassembling ROM - EdS2 - 02-22-2015, 03:30 PM
RE: [HP35S] Disassembling ROM - Tugdual - 02-22-2015, 07:21 PM



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