41CL Maximum registers for DATA/PROGS storage
|
07-19-2018, 06:02 PM
Post: #1
|
|||
|
|||
41CL Maximum registers for DATA/PROGS storage
Hi, I use a hp 50g with the HP-41X emulator by Hrast Programmer.
This emulator give me over 3000 registers: I use SIZE 900. More of this I have installed the W&W RAMBOX emulation, that store programs and permits to execute them from rambox page. I don't understand from 41CL manuals if exits a possibility to store programs in a page and execute from this page and if in 41CL the rambox use hp 41 standard ports or pages. Thank you very much!!! |
|||
07-20-2018, 12:52 AM
(This post was last modified: 07-20-2018 11:26 AM by Sylvain Cote.)
Post: #2
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
(07-19-2018 06:02 PM)Podalirius Wrote: This emulator give me over 3000 registers: I use SIZE 900.This is an extension specific to HP-41X emulator and thus not compatible with any 41C+Quad, CV, CX or CL. The CL reimplement the Nut CPU and run the standard 41 OS code, so the maximum SIZE possible is 319. (07-19-2018 06:02 PM)Podalirius Wrote: More of this I have installed the W&W RAMBOX emulation, that store programs and permits to execute them from rambox page.Using the W&W RAMBOX in a 41CL is pretty straightforward, here is the step-by-step how-to. Code: command description Code: MMUDIS disable MMU Code: CAT 2 should display "-RAMBOX 32" then "-EXT IL+" Code: 27 module simulation XROM ID Code: "MY-PROG" name of the program In this example I have only mapped 1 RAM page, but you can map more as needed into available pages like you would do with the physical W&W RAMBox unit. Sylvain edit 1: added "MY-PROG" section edit 2: added a temporary module as a place holder prevent the 41CL to hang, thanks Patrik |
|||
07-20-2018, 03:42 AM
Post: #3
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
(07-20-2018 12:52 AM)Sylvain Cote Wrote:(07-19-2018 06:02 PM)Podalirius Wrote: This emulator give me over 3000 registers: I use SIZE 900.This is an extension specific to HP-41X emulator and thus not compatible with any 41C+Quad, CV, CX or CL. I knew Àngel had created a 41CL specific module that was bypassing this limit, but I had to find it before posting the answer. The is module called CL XPMEM (manual) and allow you to have up to 1024 expanded data registers. |
|||
07-20-2018, 06:22 AM
Post: #4
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Hi, Thank you very much for help!
I readed Cl XPMEM manual: seems that the commands for use of the additional 1024 registers are more byte consuming. Again Thank you so much!! |
|||
07-20-2018, 07:25 AM
Post: #5
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
[/quote]
Using the W&W RAMBOX in a 41CL is pretty straightforward, here is the step-by-step how-to. Code: command description Code: MMUDIS disable MMU Hi Sylvain With this setup after MMUEN the CL hangs! Regards, Patrik |
|||
07-20-2018, 07:36 AM
(This post was last modified: 07-20-2018 07:37 AM by CY-CL.)
Post: #6
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
The problem is, the RAM-820 has no content. When you copy a WW Container to the RAM Page 820, your setup works! Then you can change the name by INITPG, how you described it in your 2nd step “Setup simulated W&W RAMBox RAM at page 10”.
Thanks Patrik |
|||
07-20-2018, 11:01 AM
(This post was last modified: 07-20-2018 11:23 AM by Sylvain Cote.)
Post: #7
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
(07-20-2018 07:25 AM)CY-CL Wrote: With this setup after MMUEN the CL hangs! (07-20-2018 07:36 AM)CY-CL Wrote: The problem is, the RAM-820 has no content. When you copy a WW Container to the RAM Page 820, your setup works! Then you can change the name by INITPG, how you described it in your 2nd step “Setup simulated W&W RAMBox RAM at page 10”. Hello Patrik, You are right, I forgot to clear up the RAM page before activating it, sorry about that. Unfortunately there is no RAM clear in the YFNZ module and YMCLR from YFNX will initialize it with FFF which is not good for us, I will need to do more searching for the real solution. In the mean time I will modify the instructions to copy a module into the targeted RAM area as a place holder, that will allow us to activate the MMU and not crashing, then the INITPG will reformat it correctly. Sylvain |
|||
07-20-2018, 11:39 AM
Post: #8
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Thanks Sylvain
Your information about the RAMBOX was very helpfully for me, I was not aware that I can set an XROM number for a PRGM-STORE with INITPG. I have now an easy setup after a complete MEMORY LOST. I connect over the PIL Box to an IL-Drive and load an Autorun/Program. After 2 minutes my CL is configured as OSX3 with WARP, RAMBOX etc… and all RAM Pages are filled up with the PRGM-STORE’s. I made some tests to store a RAM Page on a Flash Sector, but when I copy the Flash Sector back to a RAM Page, something goes wrong. The content is complete damaged and useless. Backup: "1FE000" YFERASE YFWR "830>1FE" Restore: "1FE>830" YMCPY Any idea what goes wrong? I use "YFNX" Thanks Patrik |
|||
07-20-2018, 12:20 PM
Post: #9
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Patrik,
(07-20-2018 11:39 AM)CY-CL Wrote: Your information about the RAMBOX was very helpfully for me, I was not aware that I can set an XROM number for a PRGM-STORE with INITPG. Great! (07-20-2018 11:39 AM)CY-CL Wrote: I made some tests to store a RAM Page on a Flash Sector, but when I copy the Flash Sector back to a RAM Page, something goes wrong. The content is complete damaged and useless. Flash does not work like RAM, I am at the office right now and cannot give you the exact procedure but here is the pseudo code that you need to do.
Sylvain |
|||
07-20-2018, 12:49 PM
Post: #10
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Patrik,
Have you looked at the HePaX module ? Even though the RAMBox was a great piece of hardware in its time and can be emulated today on the 41CL, the introduction of the HePaX module basically obsoleted it. The HePaX module is more powerful, more flexible than the RAMBox and is emulated on the 41CL. Regards, Sylvain |
|||
07-20-2018, 01:26 PM
Post: #11
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Quote:Flash does not work like RAM, I am at the office right now and cannot give you the exact procedure but here is the pseudo code that you need to do. It is not urgent, when you can provide me later an example, how exactly copy Flash to RAM, it would be great. |
|||
07-20-2018, 01:27 PM
Post: #12
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
(07-20-2018 12:49 PM)Sylvain Cote Wrote: Patrik, I played one year ago a little bit with HEPAX, unfortunately I lost the focus. I have read in several posts here in the forum, most people use HEPAX. In the CL manual is a good example how to setup HEPAX. I will try it in the next days. Many thanks for your impulse. Regards, Patrik |
|||
07-20-2018, 11:12 PM
(This post was last modified: 07-20-2018 11:20 PM by Sylvain Cote.)
Post: #13
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
(07-20-2018 01:26 PM)CY-CL Wrote:Quote:Flash does not work like RAM, I am at the office right now and cannot give you the exact procedure but here is the pseudo code that you need to do.It is not urgent, when you can provide me later an example, how exactly copy Flash to RAM, it would be great. There are several ways to do it. The easiest way is to use the 41CL Update Function module (YUPS), but unfortunately it has the same XROM ID (31) as the RAMBox ROM. A way to solve this, is to map the YUPS ROM at the same page as the RM32 ROM. I will assume the following ...
The update procedure ... Code: command description Code: "YUPS 9" deactivate RAMBox ROM and activate 41CL Update Function ROM Code: "1F8" destination flash sector start address Regards, Sylvain |
|||
07-21-2018, 08:26 AM
Post: #14
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Many thanks Sylvain
I understand now, how to copy the RAM correctly to a Flash sector. How is to setup the restore to a RAM page. Can I copy the Flash start address direct to the RAM page, or to the RAM buffer? Yesterday, I once again configured HEPAX RAM. This RAM is complete different to the “Pages” in a Rambox, like a HDRIVE on a Mass Storage. Thanks again for your input. Kind regards, Patrik |
|||
07-21-2018, 02:57 PM
Post: #15
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Patrik,
(07-21-2018 08:26 AM)CY-CL Wrote: I understand now, how to copy the RAM correctly to a Flash sector.Perfect! (07-21-2018 08:26 AM)CY-CL Wrote: How is to setup the restore to a RAM page. Can I copy the Flash start address direct to the RAM page, or to the RAM buffer?This one is the easiest I will assume the following ...
Code: command description Code: "EMPT A" remove whatever is at page 10 (assumed WW Container) (07-21-2018 08:26 AM)CY-CL Wrote: Yesterday, I once again configured HEPAX RAM. This RAM is complete different to the “Pages” in a Rambox, like a HDRIVE on a Mass Storage.Yep! Have fun ... (07-21-2018 08:26 AM)CY-CL Wrote: Thanks again for your input.My pleasure. Best regards, Sylvain |
|||
07-22-2018, 11:02 AM
Post: #16
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Hello Sylvain
Anything runs very well. I have now written a Flash Backup and Restore program from my RAMBOX containers. Thanks again for you’re very helpfully inputs. Kind regards, Patrik |
|||
07-22-2018, 11:36 AM
(This post was last modified: 07-22-2018 11:44 AM by Sylvain Cote.)
Post: #17
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Hello Patrik,
(07-22-2018 11:02 AM)CY-CL Wrote: Anything runs very well. I have now written a Flash Backup and Restore program from my RAMBOX containers.This is great! Make sure the restore program is not running from the RAMBOX container being restored, because it could create some serious misbehaviour. If that's the case, I would suggest to do the following procedure:
Best regards, Sylvain |
|||
07-22-2018, 12:43 PM
Post: #18
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
Thanks Sylvain
In my restore program I implemented an easy security feature. In the first program steps I unplug all RAMBOX containers. If I run the program from the container, it will be interrupted automatically. Best regards, Patrik |
|||
07-25-2018, 12:09 PM
(This post was last modified: 07-25-2018 12:09 PM by Ángel Martin.)
Post: #19
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
(07-20-2018 06:22 AM)Podalirius Wrote: I readed Cl XPMEM manual: seems that the commands for use of the additional 1024 registers are more byte consuming. Looks like this thread is more about the RAMBOX but just for completion sake - yes, using the Expanded register functions (YSTO, YRCL, etc...) has a more demanding byte consumption. However you have more standard memory for your program code - since no standard DATA registers are needed. "To live or die by your own sword one must first learn to wield it aptly." |
|||
07-25-2018, 04:43 PM
Post: #20
|
|||
|
|||
RE: 41CL Maximum registers for DATA/PROGS storage
...and since a very likely use of the Y-registers is by way of indirect addressing, the byte usage probably will not be as high as the savings in regular data registers would use.
Tough to do a determinant of a 20x20 matrix any other way. :-) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)