YFNS vs YFNZ
#1

THe 41CL ROM library contains two versions of the CL extra functions ROM. They differ only in their ROM labels and in their XROM numbers. The YFNZ ROM has XROM 15, and is the default version. (i.e. it is loaded when the MMU is disabled, hardwired into port 7.) The"alternate" version is called YFNS. It has an XROM number of 31.

In order to play with flash memory on the 41CL, it is necessary to map one or the other of these ROMs into RAM. For some reason, people writing code like that tend to map the YFNS version at ROM address 0x062000 into RAM, rather than the default YFNZ version at ROM address 0x070000. They often also "restore" the port mapping of the YFNS version when they are through. This has caused me some confusion, because code I wrote using the YFNZ version fails to work if the YFNS version is loaded.

Is there an XROM collision that leads people to prefer YFNS over YFNZ? Or perhaps this is a legacy of the beta test era?

#2

I think that this is probably an artifact of the Beta testing.

The 41CL hardware does not allow the first sector of Flash

memory to be written, to protect the operating system. The

YFNZ version is located in this sector. So, when patching is

required the YFNS version was used, because it can be written

back to the Flash.

#3

To that end we were also patching the YFNS to read ROM id #15 using a ypoke command.

Cheers, Geoff

p.s. I encourage all CL users to sign into Bruce Bergmans wiki in which is a dedicated CL forum including PDFs and etc:

HP 41CL wiki

Also there are some beta pdf's created which are available with an email to me.

geoffqf@xxxtelus.net (remove the xxx of course.)

Edited: 21 Dec 2011, 10:10 p.m.

#4

One reason to use the XROM#15 one is CLUTILS - the function launchers expect that id# to work.

The drawback is HEPAX RAM tends to use the same id# in 16k configurations, so a manual adjustment is required.

I have re-flashed my YFNS#31 with a patched version of the YFNZ#15, so I'm totally commited to that id number.



Possibly Related Threads...
Thread Author Replies Views Last Post
  [41CL] Power_CL: YFNZ or YFNP Dan Grelinger 5 286 03-16-2013, 08:53 AM
Last Post: Angel Martin
  41CL - Problems with YFNZ in Page 6 Dan Grelinger 6 324 01-24-2013, 12:20 AM
Last Post: Monte Dalrymple
  CLUTILS for XROM #31 YFNS instead of YFNZ? Kerem Kapkin (Silicon Valley, CA) 4 217 06-05-2012, 01:43 PM
Last Post: Monte Dalrymple
  SY-41CL v.3 YFNZ-3B Arrived! Amazing! Kerem Kapkin (Silicon Valley, CA) 4 287 05-19-2012, 11:09 AM
Last Post: Monte Dalrymple
  SY41CL-- Updating YFNZ-2B to YFNZ-3B M. Joury 11 476 05-12-2012, 01:51 PM
Last Post: Monte Dalrymple

Forum Jump: