Post Reply 
New machine language port
12-27-2019, 06:43 AM
Post: #21
RE: New machine language port
(12-27-2019 12:19 AM)cahlucas Wrote:  I can compile everything, except for a part of the program. And strangely enough, it is a sys-rpl statement, the 'MDIMS' command, which can be found on page 90 of the book "An Introduction to HP 48 System RPL and Assembly Language Programming" by James Donnelly, March 1, 2009. It gives a "Can't Find" error message. It is in a part of the program outside the 'CODE' and 'ENDCODE' statements, in a part with only sys-rpl. So apparently this is a valid instruction that is not recognized. Hopefully this can be solved. Sincerely, Karel.

On the 50g, replace "MDIMS" with "FPTR2 ^MDIMS" (be sure to include the space after the 2, and include the ^ character). It *might* work if you omit the "^" character, but if not, try including it. Several commands in HP 48 System RPL got replaced in the 50g with "Flash Pointers". Their names are now prefixed by a "^" character, and they are properly invoked in System RPL with the FPTR2 command. Hope that works for you!

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
12-27-2019, 09:22 PM
Post: #22
RE: New machine language port
Dear Mr. Horne,

I have now been able to compile / assemble the entire program. Unfortunately the program does not work. It seems that certain techniques that work on the HP-48 do not work on the HP-50. That's why I need a good machine language debugger for both the HP-48 and the HP-50. The problem here is that some pieces of asm code are embedded between code of sys-RPL. What is the best way to proceed? Are there certain procedures for porting from one calculator to another? Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-27-2019, 11:20 PM
Post: #23
RE: New machine language port
(12-27-2019 09:22 PM)cahlucas Wrote:  ... Unfortunately the program does not work. ...

That's not enough information for anybody to give you any useful help.

(12-27-2019 09:22 PM)cahlucas Wrote:  What is the best way to proceed?

The only way that's reliable is to understand HP 48 System RPL and Saturn Assembly Language, *and* HP 50g System RPL and its Simulated Saturn Assembly Language, and the differences between them. Achieving that understanding takes a lot of time. Do any members here know any faster yet reliable methods of porting mixtures of SysRPL & Code objects from HP 48 to HP 50g? If so, please share them. Thanks in advance.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
12-28-2019, 02:47 AM
Post: #24
RE: New machine language port
(12-27-2019 11:20 PM)Joe Horn Wrote:  
(12-27-2019 09:22 PM)cahlucas Wrote:  ... Unfortunately the program does not work. ...

That's not enough information for anybody to give you any useful help.

(12-27-2019 09:22 PM)cahlucas Wrote:  What is the best way to proceed?

The only way that's reliable is to understand HP 48 System RPL and Saturn Assembly Language, *and* HP 50g System RPL and its Simulated Saturn Assembly Language, and the differences between them. Achieving that understanding takes a lot of time. Do any members here know any faster yet reliable methods of porting mixtures of SysRPL & Code objects from HP 48 to HP 50g? If so, please share them. Thanks in advance.

Dear Mr. Horn,

It looks like the program on the HP-50g hangs in an infinite loop. On the HP-48, the program is completed in seconds. At the moment I can say no more about it. Maybe you can give me a few suggestions. In addition to the documentation that I already have via hpcalc.org, I am looking for other forms of information about the saturn assembly language. Maybe you can also recommend a good machine language debugger for both the HP-48 and the HP-50. Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-28-2019, 03:25 AM
Post: #25
RE: New machine language port
(12-28-2019 02:47 AM)cahlucas Wrote:  At the moment I can say no more about it.

Well, then... same here. We might be able to say more if you give us a link to the source code. Without that, we can't possibly guess what is causing your program not to run, since there are a bazillion possible reasons.

Anybody here know of a Saturn code debugger for the 50g?

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
12-28-2019, 03:31 PM
Post: #26
RE: New machine language port
(12-28-2019 03:25 AM)Joe Horn Wrote:  Anybody here know of a Saturn code debugger for the 50g?

Debug4x allows debugging Saturn code for 48-50g targets. MASD on the 50g has some debugging features as well, but I prefer the Debug4x environment for this type of thing. Of course, that's yet another compiler with a different syntax expectation than MASD, so more translation would be needed.

@cahlucas: As Joe has said, placing the source code somewhere that we can access will make it easier to assist, though if the program is as big as it sounds, it may be more of an undertaking that most would want to take on.

Besides the actual syntactical issues, the O/S environment as a whole is different between the platforms. In particular, ROM routines and data constants are sometimes in entirely different locations (if they even still exist). This means that Saturn code written for one platform won't necessarily run successfully on the other.

What is this program/suite supposed to do? Are you certain that there's no other programs available that might provide a starting point you could build upon?
Find all posts by this user
Quote this message in a reply
12-29-2019, 04:23 AM
Post: #27
RE: New machine language port
(12-28-2019 03:25 AM)Joe Horn Wrote:  
(12-28-2019 02:47 AM)cahlucas Wrote:  At the moment I can say no more about it.

Well, then... same here. We might be able to say more if you give us a link to the source code. Without that, we can't possibly guess what is causing your program not to run, since there are a bazillion possible reasons.

Anybody here know of a Saturn code debugger for the 50g?

Dear Mr. Horn,

I believe that I have finished translating the source code. Unfortunately I cannot upload the directory with the updated files, because this site refuses it. I don't know how I can send you the files. You can find the original program via the link at the bottom of this quote. I unpacked this library with LIBEX V2.4G (also on hpcalc.org) and transferred it to my HP50g via my computer. I would like to receive a response from you about how to proceed now. Sincerely, Karel.

https://www.hpcalc.org/details/8500

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-29-2019, 04:26 AM
Post: #28
RE: New machine language port
(12-28-2019 03:31 PM)DavidM Wrote:  What is this program/suite supposed to do? Are you certain that there's no other programs available that might provide a starting point you could build upon?

Dear Mr. David M.,

You can find the description via the link below. Sincerely, Karel.

https://www.hpcalc.org/details/8500

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-29-2019, 05:34 AM
Post: #29
RE: New machine language port
An implementation of the Quine-McCluskey method is already available for the HP50g:

Digitician 1.1

[Image: digitician49.png]

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
12-29-2019, 06:46 AM
Post: #30
RE: New machine language port
(12-29-2019 05:34 AM)Mark Hardman Wrote:  An implementation of the Quine-McCluskey method is already available for the HP50g:

Digitician 1.1

[Image: digitician49.png]

And there is a different one, written in C:

QuineHp

[Image: quinehp.png]

— Ian Abbott
Find all posts by this user
Quote this message in a reply
12-29-2019, 06:48 AM
Post: #31
RE: New machine language port
(12-29-2019 04:23 AM)cahlucas Wrote:  I believe that I have finished translating the source code. Unfortunately I cannot upload the directory with the updated files, because this site refuses it. I don't know how I can send you the files. You can find the original program via the link at the bottom of this quote. I unpacked this library with LIBEX V2.4G (also on hpcalc.org) and transferred it to my HP50g via my computer. I would like to receive a response from you about how to proceed now.

https://www.hpcalc.org/details/8500

Since that zipfile doesn't include commented source code, we are at an impasse. Sorry, but I can help you no further.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
12-29-2019, 03:14 PM
Post: #32
RE: New machine language port
As a start, go through the source code and make sure that any ROM or O/S data that it's accessing are part of the supported entries. If not then you'll need to figure where they are on the 50g, or how to access them in a supported manner.
Find all posts by this user
Quote this message in a reply
12-29-2019, 09:01 PM (This post was last modified: 12-29-2019 09:04 PM by cahlucas.)
Post: #33
RE: New machine language port
(12-29-2019 05:34 AM)Mark Hardman Wrote:  An implementation of the Quine-McCluskey method is already available for the HP50g:

Digitician 1.1

[Image: digitician49.png]

Dear Mr. Hardman,

I am familiar with the program 'Digitician 1.1'. The last time I used it, the program crashed. The advantages of the program that I want to port are the speed and that the solutions it gave back were always correct. Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-29-2019, 09:10 PM
Post: #34
RE: New machine language port
(12-29-2019 06:46 AM)ijabbott Wrote:  
(12-29-2019 05:34 AM)Mark Hardman Wrote:  An implementation of the Quine-McCluskey method is already available for the HP50g:

Digitician 1.1

[Image: digitician49.png]

And there is a different one, written in C:

QuineHp

[Image: quinehp.png]

Dear Mr. Ijabbott,

I know that program too. I tested it, and it appears that it gives good results, as long as no "don't cares" are used. This means that the program does not always give the correct results. And that's why I don't use it. Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-29-2019, 09:17 PM
Post: #35
RE: New machine language port
(12-29-2019 06:48 AM)Joe Horn Wrote:  
(12-29-2019 04:23 AM)cahlucas Wrote:  I believe that I have finished translating the source code. Unfortunately I cannot upload the directory with the updated files, because this site refuses it. I don't know how I can send you the files. You can find the original program via the link at the bottom of this quote. I unpacked this library with LIBEX V2.4G (also on hpcalc.org) and transferred it to my HP50g via my computer. I would like to receive a response from you about how to proceed now.

https://www.hpcalc.org/details/8500

Since that zipfile doesn't include commented source code, we are at an impasse. Sorry, but I can help you no further.

Dear Mr. Horn,

Perhaps there is another option to get the ported program to you if you are interested. Do you perhaps know a service on the internet except dropbox where we can share files? I hope you have a suggestion. Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
12-29-2019, 09:19 PM
Post: #36
RE: New machine language port
(12-29-2019 03:14 PM)David Hayden Wrote:  As a start, go through the source code and make sure that any ROM or O/S data that it's accessing are part of the supported entries. If not then you'll need to figure where they are on the 50g, or how to access them in a supported manner.

Dear Mr.Hayden,

Can you give me a hint where I should start, or where I can get that information? Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
Post Reply 




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