<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 10 Sep 2005 23:29:33 +0100
From   : jgh@... (Jonathan Graham Harston)
Subject: Re: checking ROMS.

> Message-ID: <2Yg+SDJLtsIDFwQ5@...>
 
Mike Tomlinson <mike@...> wrote:
> In article <1126349255.6331.0.camel@...>, Tom Drage
> <drage@...> writes
> 
> >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)"
>    A%=&8009
>    a$=""
>    REPEAT
!&F6=A%:B%=(USR&FFB9)AND&FF
IF B%>31 AND B%<127:a$=a$+CHR$B%
>    A%=A%+1
UNTIL B%=0
>    :=a$
 

-- 
J.G.Harston - jgh@...                - mdfs.net/User/JGH
BBC BASIC for Windows and Internationalisation
  See http://mdfs.net/Software/BBCBasic/Windows/ProgTips




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