<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 11 Sep 2005 07:27:48 +0100
From   : Sprow <info@...>
Subject: Re: checking ROMS.

In article <050910235504@...>,
   Jonathan Graham Harston <jgh@...> wrote:

> > >Just wondering what the command for the BBC B is to list the installed
> > >ROMs, I couldn't find it in the manual?
> > 
> > There isn't one.  You can use this little program:
>  
> Why the assembled machine code? You may as well just call OSRDRM
> direct:
>  
> >    FOR Y% TO 0 STEP -1
> Y$=RIGHT$("0"+STR$~Y%,2)
> >    PRINT Y$"> ";
> >    PRINT FNrom
> >    NEXT
> >    END
> >    DEF FNrom
> >    IF Y%?&2A1=0 := "(vacant)"

Could use OSByte 170/171 to read the ROM info table base rather than
assuming it is &2A1.

> >    A%=&8009
> >    a$=""
> >    REPEAT
> !&F6=A%:B%=(USR&FFB9)AND&FF

Please don't use ! on &F6, as that will nuke &F8/F9 too. OK, so they're not
used on the BBC B, but they are on the Master,
Sprow.




<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>