Post Reply 
Saving the state of HP41 CL to PC
03-08-2019, 06:19 AM
Post: #22
RE: Saving the state of HP41 CL to PC
(03-08-2019 03:41 AM)cdmackay Wrote:  [I hope it's OK to resurrect an old thread like this…]

If I'm reading this right, are we saying that the YWALL function from PWRX is not compatible with the V5 boards, because on those boards the flash sector 0x1f8 isn't segmented (unlike on V3/V4 "top" boards), so cannot be erased in page chunks, but only the whole 8-page sector?

That seems to be the case on my new 41CL: I just tried YWALL, and whilst I have valid copies of MMU registers from 0x804 in 0x1ff, I tried a YPEEK on 0x800028/0x1fe028, and found data in the former, but 0xffff in the latter, which I think means "erased"?

Would a simple solution to this (for V5) be to change YWALL so that it does only a single YFERASE of 0x1f8 (the whole 8-page sector) before copying 0x800 & 0x804? Assuming that it's OK to dedicate all of that sector as a backup area.

Or, for simplest change, merely omit the YFERASE of 0x1ff, as the previous erase of 0x1fe will have done the whole sector?

YRALL could remain as is.

Edit: or better to use the V5 top sector that is segmented, and change YWALL to use flash pages 0x3f8/0x3fc to copy RAM 0x800/0x804?

I think both your proposals will work just fine. But wouldn't you mean using 0x3FE and 0x3FF atop of V5? - tha'd follow the same analogy.

I'd like to make it a bit more general-purpose though and add some logic to determine first whether it's a V5 board or not, so it can be used by all users...

ÁM

"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
Saving the state of HP41 CL to PC - PeterP - 12-27-2017, 11:30 PM
RE: Saving the state of HP41 CL to PC - Ángel Martin - 03-08-2019 06:19 AM



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