Post Reply 
41CL MMU Backup
05-30-2020, 03:45 PM (This post was last modified: 05-30-2020 05:33 PM by Ángel Martin.)
Post: #11
RE: 41CL MMU Backup
(05-30-2020 02:32 PM)twoweims Wrote:  
(05-30-2020 05:22 AM)Ángel Martin Wrote:  I guess this means I should probably modify the YRALL routine in the PWRX module to include the fix, it was written with a previous version of YFWR (the one still included in YFNZ) that did not alter page#4 mapping in the saved flash block.


Also, in your YWALL program listing in the PowerCL Manual, the comment next to YSERASE says "erase BLOCK" but YFERASE in the 41CL manual says that it erases an entire sector. Won't the second call to YFERASE erase the whole sector, wiping out the copy of 800 that was just put into 1FE?

This is tricky. Depending on the CL board version YFERASE will delete the complete TOP sector (32K ) or only the selected block (4k).

- YWALL in the original PowerCL assumed the complete TOP sector was deleted so only one YFERASE call was done, but
- YWALL in the PWRX module assumes the top sector erasing is granular (i.e. by blocks), so there are two YFERASE calls for the 1EF and 1FF blocks.

I don't remember how to tell which version your board is, we need Monte to remind us how to tell.

BTW tinkling a bit further into this I think it's better to avoid the problem from happening rather than fixing it afterwards (prevention rather than cure). All we need is to call YFWR in YFNZ instead of YFWR in YFNX to avoid the problem, so here's the updated listing o YWALL (note steps 13 and 15 used to switch between the two YFN's versions))

Code:
01 LBL "YWALL"
02 "1FE000"
03 AVIEW
04 YFERASE  
05 "800>1FE"
06 AVIEW 
07 YFWR
08 FC? 01
09 GTO 02
10 "1FF000"
12 YFERASE
12 "804>1FF"
13 MMUDIS
14 YFWR
15 MMUEN
16 GTO 02
17 LBL "YRALL"
18 "1FE>800"
19 AVIEW
20 YMCPY
21 "1FF>804"
22 AVIEW
23 FS? 01
24 YMCPY
25 LBL 02
26 "DONE"
27 END


ARRGGHHHH now I remember why this won't work either: the YFWR functioni from YFNZ must be executed from RAM to begin with! - full circle to the same place....

So never mind, I guess we're back to having to remap the library#4 after YFWR (in the YFNX) has terminated....

"To live or die by your own sword one must first learn to wield it aptly."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
41CL MMU Backup - twoweims - 05-28-2020, 10:15 PM
RE: 41CL MMU Backup - Monte Dalrymple - 05-29-2020, 04:07 PM
RE: 41CL MMU Backup - twoweims - 05-29-2020, 04:44 PM
RE: 41CL MMU Backup - Monte Dalrymple - 05-29-2020, 05:49 PM
RE: 41CL MMU Backup - twoweims - 05-29-2020, 08:50 PM
RE: 41CL MMU Backup - Monte Dalrymple - 05-29-2020, 10:09 PM
RE: 41CL MMU Backup - twoweims - 05-30-2020, 01:05 AM
RE: 41CL MMU Backup - Ángel Martin - 05-30-2020, 05:22 AM
RE: 41CL MMU Backup - twoweims - 05-30-2020, 02:32 PM
RE: 41CL MMU Backup - Ángel Martin - 05-30-2020 03:45 PM
RE: 41CL MMU Backup - Ángel Martin - 05-31-2020, 06:09 AM
RE: 41CL MMU Backup - grsbanks - 05-30-2020, 08:27 AM
RE: 41CL MMU Backup - Ángel Martin - 05-30-2020, 03:52 PM
RE: 41CL MMU Backup - Monte Dalrymple - 05-30-2020, 06:47 PM
RE: 41CL MMU Backup - rprosperi - 05-30-2020, 10:36 PM
RE: 41CL MMU Backup - Monte Dalrymple - 05-30-2020, 11:58 PM
RE: 41CL MMU Backup - rprosperi - 05-31-2020, 03:00 AM
RE: 41CL MMU Backup - Monte Dalrymple - 08-07-2021, 02:07 AM
RE: 41CL MMU Backup - Ángel Martin - 05-31-2020, 06:55 AM
RE: 41CL MMU Backup - Monte Dalrymple - 05-31-2020, 06:22 PM
RE: 41CL MMU Backup - twoweims - 05-30-2020, 08:26 PM
RE: 41CL MMU Backup - Monte Dalrymple - 05-30-2020, 10:07 PM
RE: 41CL MMU Backup - twoweims - 05-31-2020, 06:30 PM
RE: 41CL MMU Backup - rprosperi - 05-31-2020, 06:51 PM
RE: 41CL MMU Backup - twoweims - 05-31-2020, 07:44 PM
RE: 41CL MMU Backup - rprosperi - 05-31-2020, 08:09 PM
RE: 41CL MMU Backup - twoweims - 06-01-2020, 09:24 PM
RE: 41CL MMU Backup - Monte Dalrymple - 06-01-2020, 10:48 PM
RE: 41CL MMU Backup - twoweims - 06-01-2020, 11:48 PM
RE: 41CL MMU Backup - Monte Dalrymple - 06-02-2020, 01:42 AM
RE: 41CL MMU Backup - grsbanks - 06-04-2020, 07:14 PM
RE: 41CL MMU Backup - Monte Dalrymple - 06-04-2020, 08:50 PM



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