home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 98 / af098sub.adf / abeeb.LZX / ABeeb / Docs / RomPatches < prev    next >
Text File  |  1998-01-05  |  1KB  |  27 lines

  1. Patching the OS ROM for the emulated filesystem
  2. ===============================================
  3.  
  4. The emulated filesystem works by intercepting calls to OSFILE and OSFSC
  5. by inserting unused op-codes at the first instruction executed as part
  6. of these routines.  (Basically we're looking at the locations to which
  7. the OSFILEV and OSFSCV vectores point here.)
  8.  
  9. Given that you have your copy of the 1.2 OS ROM, in the pch directory
  10. that will read that in, make the patches and write it out again.  You need
  11. to make a copy of the ROM called "OS1.2p1.rom" before you start -- it's
  12. this file that gets modified.
  13.  
  14. OSFILE is trapped by putting in the unused opcode 0x22 and OSFSC is trapped
  15. with 0x02.  The addresses at which these op-codes are inserted are &f27d
  16. and &f1b1 respectively.
  17.  
  18. If you want to run the emulator with a different ROM, you'll need to
  19. set the locations in the program itself.  Everything *should* work OK once
  20. those changes have been made -- if you do get it to work, let me know
  21. the OS version and the addresses so that I can update the program.
  22.  
  23. Emulation of the filing system in this way is not too difficult, but
  24. causes problems where it can't be sufficiently well integrated into the
  25. OS.  In places the emulator will terminate because there's no way to
  26. handle any given error properly (ie, as it would be handled by the OS).
  27.