<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 10 May 1997 12:47:07 +0100
From   : Theo Markettos <bbc-list@...>
Subject: Re: How to read contents of ROM on Electron?

> Bala Amavasai wrote:
> > 
> > I've just bought an Electron. I'd like to know how I can read the
> > contents of the ROM in the Sideways ROM modules. I've tried
> >         *ROM
> >         *CAT
> > but nothing seems to appear.

This will only work for ROMs controlled by the ROM filing system.  I think
this was only used in the cartridge slots on the Plus One.  Other ROMs just
contain code, and have no filing system interface at all.   

The following program will extract the ROMs from a BBC, so might work on an
Electron: 

skt%=15:REM Put ROM socket number here
f$="filename":REM Put filename to save as here
k%=16:REM Put size in kilobytes here
cha%=OPENOUTf$
FOR loop%=&80 TO &80+(k%*4)-1:Y%=skt%:?&F7=loop%
FOR iloop%=0 TO &FF:?&F6=iloop%:
BPUT#cha%,(USR(&FFB9) AND &FF)
NEXT:NEXT:
CLOSE#cha%



-- 
Theo Markettos
theo@...                 
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>