Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Applied links to related System Call API's

...

Code Block
languagenone
titleRST 20H, DEFW $C806
IN:
     A = reason code:
          FEP_CDID = $00 - Identify Flash Memory Chip in slot
          FEP_CDDT = $03 - Get Flash Card Data
          FEP_SCER = $06 - Erase sector in Flash Memory
          FEP_CDER = $09 - Erase entire Flash Memory
          FEP_FFMT = $0C - Flash Memory File Area Formatting
          FEP_WRBT = $0F - Write byte to the Flash Memory
          FEP_WRBL = $12 - Write a block of bytes to Flash Memory
          FEP_CPFL = $15 - Copy file entry between two File Areas
          FEP_RDFA = $18 - Reduce an existing "oz" File Area

     BC, DE, HL, IX arguments.
OUT:
     Fc = 1, A = error code.
     Fc = 0, reason code action successfully ended.

Notes

The OS_Fep manages the Flash Card hardware in OZ V4.2 and later versions. It is based on the original driver software developed by Thierry Peycru in 1996.

...

Around 2001, Intel stopped manufacturing the 1Mb flash chip. Fortunately, the AMD 29F generation of Flash chips became available. These were pin for pin compatible with the Intel chips, which enabled Rakewell to keep using the existing PCB and continue production of the 1Mb Flash Cards for the Z88. Further, this 3rd generation flash technology only required 5V to erase and blow bytes to the memory which allowed the card to be used in all slots of the Z88 hardware (the Intel flash chip required 12V on the VPP pin which was only available in slot 3). Rakewell is still using this hardware today (since 2007). Additional software was required to use this new chip.

The new OS_Fep interface is based upon the code base of the standard flash library routines, and is tightly integrated into OZ V4.2 and above for compactness and speed efficiency.

...

The software to drive these chips were based on these documents.

All the OS_Fep routines that are used in FlashStore popdown have been integrated into OZ V4.2. The Filer popdown has also been optimized to use OS_Fep for transparent access to the Flash based file cards. OS_Fep should be regarded as low-level routine and used responsibly. 

Details of each reason code action are described in the subsequent pages.

Related system calls

OS_Epr, File Eprom Interface