[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Original IIgs ROM



Paul Grammens <grammens@svn.net> wrote:

> David Empson <dempson@actrix.gen.nz> wrote
> >
> > I'd suggest concatenating the four files and saving it as a binary image
> > (128 KB).
> >
> 
> I know how to do this on a PC. If I get the files onto my PC and concatenate
> them, will that work?

Yes - another followup has the details.

> Else, could someone tell me how to concatenate on an Apple II?

You can actually save the image as a single file by modifying the
previous intructions slightly:

CALL-151
0/1000<FE/0.7FFFM
BSAVE ROM0,A$1000,L$8000
0/1000<FE/8000.FFFFM
BSAVE ROM0,A$1000,L$8000,B$8000
0/1000<FF/0.7FFFM
BSAVE ROM0,A$1000,L$8000,B$10000
0/1000<FF/8000.FFFFM
BSAVE ROM0,A$1000,L$8000,B$18000

This will produce a 128 KB file with bank FE followed by bank FF.
Switch over the "FE" and "FF in the move commands if you want the banks
in the right order for burning into an EPROM.

The "B" parameter to the BSAVE and BLOAD commands (only available in
ProDOS) specifies a byte offset within the file.

You can use a similar technique to concatenate four binary files into a
single image file or to split a large file into pieces, by using
combinations of BLOAD and BSAVE.

> BTW, is there a reason why I couldn't extract the ROM contents in one file
> rather than four?

You can't do it with a single command, because BASIC.SYSTEM's BSAVE and
BLOAD commands are only able to address memory within bank zero, and you
only have about 35 KB of unused RAM to work with ($0800 to $95FF,
depending on the presence of BASIC programs and the number of files
which are open).