Could someone educate me on options for HEPAX RAM size?

Discussion around the SwissMicros DM41X calculator
whuyse
Posts: 198
Joined: Thu Dec 21, 2017 1:23 pm

Re: Could someone educate me on options for HEPAX RAM size?

Post by whuyse »

Dave Britten wrote:
Sun Feb 21, 2021 2:23 pm
I read an article somewhere - probably PPC Journal - that it's possible to get the 41 to execute programs directly from X-MEM via some synthetic tricks, though it required some care to do this.
Yes, I have done just that - long ago, with a Heapsort program ;-)
And Angel's HEPAX ROM(s) have an instruction XQXM to execute programs residing in X-Memory.

Cheers, Werner
41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE, DM15L
Boub65
Posts: 231
Joined: Tue Sep 12, 2017 4:34 pm
Location: Rabat, Morocco

Re: Could someone educate me on options for HEPAX RAM size?

Post by Boub65 »

Thanks Dave and Whyuse for the "education" about HP41 memory.

Unfortunately, I think that the DM41X learning curve is very steep!

Sincerely,
Boubker.
Sincèrement, Sincerely, 73,
Boubker

DM15L, DM41L, DM42 #00855 (domes upgraded), DM41X #00707
HP48SX (with dark screen), HP42s, HP32SII (1990 with fraction bug), HP41C/CV
TI-89 titanium, CASIO fx-cg50 and Numworks (to play with micropython)
Ángel Martin
Posts: 145
Joined: Mon Apr 24, 2017 8:19 pm

Re: Could someone educate me on options for HEPAX RAM size?

Post by Ángel Martin »

This graphic may be of help as well:
Attachments
hepaxram.png
hepaxram.png (211.25 KiB) Viewed 3344 times
whuyse
Posts: 198
Joined: Thu Dec 21, 2017 1:23 pm

Re: Could someone educate me on options for HEPAX RAM size?

Post by whuyse »

The 41X has arrived, thanks SM!
I tried the HEPAX_8H, together with LIB4.
I emptied the filesystem, and now have 1957 free registers in HEPAX memory. That does seem low, no? At 6 words per register, 3926 words per bank, I should have more than 2600 registers. It seems there's a bank missing?

I loaded the _4H module instead, to verify, and now HEPDIR shows nothing, well 'NAME TYPE REGS' in the alpha register, and 0 in the X-reg. This looks like it thinks the printer is connected but the module is not installed and F55 and F21 are Clear.
What to do?

Cheers, Werner
41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE, DM15L
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Could someone educate me on options for HEPAX RAM size?

Post by rprosperi »

Ensure there are no modules installed from the Active Modules view ([shift] [setup] [1] [2]) as the HEPAX ROM will try to relocate itself to Page-6.

Use the ROM Map to see what is allocated where - press [CST] [2]
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
whuyse
Posts: 198
Joined: Thu Dec 21, 2017 1:23 pm

Re: Could someone educate me on options for HEPAX RAM size?

Post by whuyse »

Bob - this is with a brand new out-of-the box DM41X. The only modules are LIB4 and HEPAX, which is in page 6 BTW.
HEPAX_8H seems to be a RAM page short, as it only shows 1957 free registers in HEPAX Memory.
after removing HEPAX_8H and plugging _4H (or 1G, btw), HEPDIR shows 0 and 'NAME TYPE REGS' in alpha.
Thanks, Werner

Ahh cleared page 11 with "OK" 11 CLRAM, which locked up the calculator.
After a reset, and a unplug/plug of the _8H, I have 2610 regs in the FS!
One problem solved ;-) Though the freeze perhaps shouldn't happen?
41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE, DM15L
Ángel Martin
Posts: 145
Joined: Mon Apr 24, 2017 8:19 pm

Re: Could someone educate me on options for HEPAX RAM size?

Post by Ángel Martin »

Afraid the HEPAX_8H.MOD I posted had a problem: a duplicate XROM id# in one of the RAM pages.
BTW you can use the HEXEDIT function to modify said XROM id# at any time - in fact you will need to do that to avoid conflicts with other modules (see HEPAX manual for details).

PS. Great problem solving! And you're right, that freeze should not happen, CLRAM is a "normal" function and the system should not flunk when used.
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Could someone educate me on options for HEPAX RAM size?

Post by rprosperi »

Ahh, good news it was just small bug in the module, I was getting concerned as it's not like Werner to miss something ...

@angel - can you update the 8H image or let me know the address and bytes to change; I'll hexedit it and update a patched version.

Thanks guys!
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
Ángel Martin
Posts: 145
Joined: Mon Apr 24, 2017 8:19 pm

Re: Could someone educate me on options for HEPAX RAM size?

Post by Ángel Martin »

rprosperi wrote:
Fri Feb 26, 2021 12:36 am
@angel - can you update the 8H image or let me know the address and bytes to change; I'll hexedit it and update a patched version.
The only address to edit is the first word on the third page - use any XROM id# available.
But I'm afraid doing that will not change the MOD file, only the RAM contents (since in the 41X the RAM is not included in the MOD file), so I've changed it on V41 for a permanent effect.
See attached...
Attachments
HEPAX_8H.zip
(18.11 KiB) Downloaded 175 times
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Could someone educate me on options for HEPAX RAM size?

Post by rprosperi »

Thanks Angel.

Sorry I wasn't clear, I meant I would edit the original .mod file file on the PC using a hex editor.

With 8 pages of HEPRAM using all the upper pages, (and the HEPAX ROM in Page-6) the only ROM ID conflicts one has to be aware of would be the HEPAX ROM itself plus if you had something special (e.g. Warp_Core) loaded in Page-7 (and 25/26 on a CX), is that correct?

Did you just grab some arbitrary ID numbers, I've wondered how how chose those?
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
Post Reply