Post Reply 
Porting HP48 Program to HP50g
02-27-2017, 07:24 AM (This post was last modified: 02-27-2017 07:28 AM by Joe Horn.)
Post: #2
RE: Porting HP48 Program to HP50g
Quote:I transferred the source code file to the 50g with an SD card, put the string in the stack, and ran ObjFix v11 to compile it (is this what is happening here?).

Yes, that's right. The file called "linalg420src" is an HP 48 directory object stored in binary form. So when you imported it to the 50g, it arrived as a string with extraneous header bytes which ObjFix removed, returning it to its proper form as a directory object. That should be stored in a variable, e.g. linalg420.

Unfortunately, turning that source code into a working library would be almost impossible, because that source code was written in HP 48 Jazz notation using the HP 48 System RPL command set. To translate it into 50g System RPL, *many* things need to be changed (e.g. the HP48's System RPL command MATTRN needs to be changed to FPTR2 ^MATTRN for the HP 50g), and many commands have no 50g equivalent at all (e.g. I noticed QRMOD in the 48 source code, but QRMOD doesn't exist in the 50g command set, and would either need to be replaced by some other command with equivalent functionality -- if such exists -- or rewritten entirely).

In other words, there's no easy way to port that library to the 50g. It would be a large undertaking. Sorry.

Obvious suggestion: Ask the author (Scott Hyde) whether he ever rewrote it for the 50g himself.

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Porting HP48 Program to HP50g - Shootquinn - 02-27-2017, 03:20 AM
RE: Porting HP48 Program to HP50g - Joe Horn - 02-27-2017 07:24 AM
RE: Porting HP48 Program to HP50g - Han - 02-27-2017, 12:44 PM
RE: Porting HP48 Program to HP50g - Han - 02-27-2017, 03:52 PM
RE: Porting HP48 Program to HP50g - Han - 02-28-2017, 01:07 AM

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