Post Reply 
(SOLVED) 41CL - DOUBLE HEPAX ACCESS and MMU CONFIG
08-22-2019, 01:59 AM (This post was last modified: 08-22-2019 02:10 AM by Sylvain Cote.)
Post: #37
RE: 41CL - DOUBLE HEPAX ACCESS
(08-21-2019 07:34 PM)Podalirius Wrote:  I reinstalled 9CFA and ALL WORKS VERY WELL!!!
I am sorry for my mistake.
No need to be sorry, learning is a difficult path and mistakes are part of it.

(08-21-2019 07:34 PM)Podalirius Wrote:  A little doubt: to swap from MMU 0 to one of the MMU installed by CFGINI, is enough to type "9???" PPLUG or I have to use the code that Mr. Monte posted in this help?
Actually you do not swap, well ... you can, but in all our examples up to now, we never did.
So for our limited view of things, you override your MMU configuration set 0 with another MMU configuration set 1 to F with RCLCFG or from one of the "9???" with PLUG or PPLUG.

(08-21-2019 07:34 PM)Podalirius Wrote:  For example, to change to another configuration:
MMUDIS
MMUCLR
"YFNX" PLUGH
MMUEN
RCLCFG ?
In general yes but you must map the "YFNX" module to the same page as the configuration you want to import.
Ex #1: for set 4 or "9PWR", "YFNX" is mapped to page 7 (PLUGH)
Ex #2: for set F or "9HIL", "YFNX" is mapped to page D (PLUG3U)

(08-21-2019 07:34 PM)Podalirius Wrote:  Of course I don't select 9HIL because we have your configuration!
Not so sure, if you save it like my last post suggested it (STOCFG 2) then you use "9CFB" not "9HIL".

Configuration names and numbers ...
Code:
Name    Set  MMU-Type   Description
------  ---  ---------  ---------------------------------------
         0   Primary    Active configuration used by the system
"9CFA"   1   Primary    Alternate Configuration A
"9CFB"   2   Primary    Alternate Configuration B
"9BAS"   3   Primary    Basic Configuration
Code:
"9PWR"   4   Secondary  Power-User Configuration
"9MTH"   5   Secondary  Mathematics Configuration
"9SCI"   6   Secondary  Scientist’s Configuration
"9INF"   7   Secondary  Informatics Configuration
"9PRG"   8   Secondary  Programming Configuration
"9ELE"   9   Secondary  Electrical Engineering Configuration
Code:
"9MEC"   A   Secondary  Mechanical Engineering Configuration
"9MAP"   B   Secondary  Maps & Words Configuration
"9PLY"   C   Secondary  Playground Configuration
"9BGM"   D   Secondary  Brainy Games Configuration
"9CST"   E   Secondary  Custom Configuration
"9HIL"   F   Secondary  HP-IL Configuration
Note: configuration names was taken from the 41CL Calculator Manual (sy41cl.pdf) page 59 (rev. 2019-06-22)

Some of the functions affecting MMU Registers ...
Code:
Function  Parm    From  Description
--------  ------  ----  -------------------------------------------------------------------------
MMUCLP            YFNX  Erase RAM Primary   MMU Registers (sets 0 to 3 are cleared)
MMUCLS            YFNX  Erase RAM Secondary MMU Registers (sets 4 to F are cleared)
CFGINI            YFNF  Copy default values from ROM to RAM Secondary MMU Registers (sets 4 to F)
Code:
PLUG      "Name"  YFNX  Copy specified configuration name to active configuration (set 0)
PPLUG     "Name"  YFNX  Copy specified configuration name to active configuration (set 0)
RCLCFG    1 to F  YFNX  Copy specified configuration set (1..F) to active configuration (set 0)
STOCFG    1 to F  YFNX  Copy active configuration (set 0) to specified configuration set (1..F)
EXCFG     1 to F  YFNX  Exchange active configuration (set 0) with specified configuration set (1..F)
Code:
LOCK      0 to F  YFNX  Lock specified page in active configuration (set 0)
UNLOCK    0 to F  YFNX  Unlock specified page in active configuration (set 0)
Note: MMU locked entries are not copied or exchanged. (YFNX is always locked and cannot be unlocked while MMU is enabled)

Also, like Monte said in an earlier port, you can lock the HePaX ROM+RAM in place, preventing an override of your HePaX setup by another configuration.

In your case to lock the pages, the procedure is:
Code:
LOCK B       // lock HePaX ROM
LOCK C       // lock HePaX RAM page 1
LOCK D       // lock HePaX RAM page 2
LOCK E       // lock HePaX RAM page 3
LOCK F       // lock HePaX RAM page 4

To unlock the pages, the procedure is:
Code:
UNLOCK B     // unlock HePaX ROM
UNLOCK C     // unlock HePaX RAM page 1
UNLOCK D     // unlock HePaX RAM page 2
UNLOCK E     // unlock HePaX RAM page 3
UNLOCK F     // unlock HePaX RAM page 4

Sylvain

edit: typo & added some details
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 41CL - DOUBLE HEPAX ACCESS - Sylvain Cote - 08-22-2019 01:59 AM



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