<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 19 Aug 2008 22:24:03 +0100
From   : jgh@... (Jonathan Graham Harston)
Subject: Hard reset from Software

"Mark Haysman" wrote:
> It's doing what I wanted in this application, which was for a loader to copy
> an offset ROM into sideways ram, then reset the machine so it initialises
> it - just doing a memory clear break at that point caused problems, but
> using this method is working fine.
 
Be careful with that. The Compact and MOS 3.50 takes the
instruction to perform a power-on memory-wiping reset as just that,
and wipes the sideways RAM banks! 
 
If the ROM image doesn't claim memory, simply setting the ROM type
byte in the ROM table is sufficient, which a version of *SRLOAD
with the 'I' parameter will do, viz:
 
*SRLOAD file 8000 2 I
 
See http://mdfs.net/Mirror/Image/JGH/JGH018.ssd or
http://mdfs.net/Mirror/Archive/JGH/Utility2.zip
 
-- 
J.G.Harston - jgh@...                - mdfs.net/User/JGH
**** DO NOT EMPLOY MARREN BUILDERS/ROOFERS, SHEFFIELD ****
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>