home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 224
/
224.d81
/
t.e2
< prev
next >
Wrap
Text File
|
2022-08-26
|
14KB
|
506 lines
u
A B O U T E M U L A T O R S I I
by Professor Dredd
aka Ken Kill, Jr
IMAGE FILES
You probably know that C-64 tapes,
disks and cartridges don't work on a
PC. To get C-64 data onto a PC hard
drive, you need method of encoding the
data. The emulator must be able to
recognize and decode the data as a
C-64 program. That's what images are
all about.
For the most part, an image is a
byte-for-byte duplication of actual
data taken from a piece of C-64 media.
This media may be a C-64 tape, disk or
cartridge or even a ROM chip from
inside the computer. Some image files
contain additional header data telling
the emulator what's in the image and
how its organized. The technical
details of the various image formats
and their respective header data can
be found in the document "FORMATS.ZIP"
by Peter Schepers. Obtain this file
at:
http://www.fairlight.to/
The creation of image files and
the process of transferring them
between the C-64 and PC are topics
worthy of their own articles. See your
emulator docs as well as the above web
site for some helpful info and tools.
Also check out the newsgroup:
comp . emulators . cbm
http://groups.google.com
Some image files are included with
CCS64. These include:
Kernal.rom - Binary image of the
Commodore 64 KERNAL ROM taken from
$E000-FFFF
Basic.rom - Binary image of the
Commodore BASIC 2.0 interpreter ROM
taken from $A000-BFFF
Char.rom - Binary image of the C-64
character fonts taken from
$D000-DFFF
C1541.rom - Binary image of CBM DOS
V2.6 1541 taken from $C000-FFFF of
the 1541
CCSMon.crt - This is a cartridge
image. It contains a machine
language monitor you can use with
the emulated C-64. It behaves very
similar to a HesMon cartridge
plugged into a real C-64.
ROM IMAGES
You never have to worry about the
KERNAL, BASIC and Character ROM's. As
long as they're present in the CCS64
folder, the emulator will function
correctly. It is possible to replace
these images with alternate ROM's, or
even customize them yourself. You can
download some alternate ROM sets from:
ftp://arnold.c64.org/pub/ut ils/roms/
You could write a new operating
system for the C-64. If you assemble
the OS and copy the binary (object or
executable) code to a PC formatted
disk and name it with a .ROM
extension, you can use CCS64 to test
it. If you want to run the new OS on a
real C-64, burn it into EPROM and plug
it in!
Such a custom OS need not include
a BASIC interpreter. You could create
any sort of environment you like to
compute in such as LINUX or CP/M! Of
course, this would be an ambitious
project indeed, and would require an
extensive knowledge of the C-64
hardware. I.E. you'll have to write
all your own drivers for keyboard,
video and disk/tape I/O. Then again,
you can borrow as much of the original
KERNAL as you like and make any
necessary modifications as you go.
Some simple customizations which
don't require writing an entirely new
OS might include:
- new startup colors.
- new character font sets
- custom startup text (e.g. "WELCOME
PROFESSOR, SHALL WE PLAY A GAME?")
- enhanced BASIC functions for GET#,
INPUT or other commands
- added BASIC commands like MODulus,
GRAPHIC, PLOT (ever wish "Simon's
BASIC" didn't tie-up the cartridge
port?)
- fast I/O routines for disk/tape
(most alternate ROM's include
these)
- built-in DOS wedge or BASIC
7.0-style DOS commands
- C-128-style autobooting from drive
#8
- anything you can imagine!
CARTRIDGE IMAGES
CCS64 includes CCSMon.crt as a
convenience for ML programmers. It can
be handy for tweaking programs that
don't fully function on the emulator,
or for breaking into a game to add
cheats (e.g. infinite lives,
invincibility.) You can get other cart
images from:
ftp://arnold.c64.org/pub/games/
Cartridges/
Using a cartridge image with CCS64 is
the equivalent of physically plugging
a real cart into a real C-64, and you
should think of it that way.
Cartridges are supported by the
current release CCS64 2.0b, but not
on older versions. Check the manual
accompanying your version for
details.
From the C-64 screen, hit ALT-C to
go to the "Cartridge" menu. Here you
see various functions which control
the operation of the emulated
cartridge port. Highlight "Insert
Cartridge" and press F1. Now you see
the "Insert Cartridge" file menu. PAY
ATTENTION because all the file menus
in CCS work the same!
The first entry, ".." is used to
go up one level in the directory
hierarchy. Below that is a list of
files in the current directory. At the
bottom is a list of all drives
currently active on your PC such as
A:, C: and D:
If you're not already inside the
CCS64 folder (the one you unZIPped
CCS64 into), you'll have to navigate
there. On my own PC it is located in
"C:{CBM--}Program Files{CBM--}CCS64{CBM-*}32". Hit ENTER
on a directory name to go down into
it. Hit ENTER on ".." to go up one
directory level. Hit ENTER on a drive
letter to change to a different active
drive.
Inside the CCS64 folder you'll see
the image "CCSMon.crt". Highlight it
and hit ENTER. Now CCS64 restarts the
emulated C-64 with the cartridge
inserted. You'll see the CCSMon
startup screen.
Now remove (un-insert) the
cartridge by pressing ALT-C to return
to the "Cartridge" menu. Use
down-arrow to highlight "Cartridge
Emulation" and right-arrow to select
"Off". Press ESC to return to the
emulated C-64. What the?!? The CCSMon
screen is still displayed! Hit ALT-R
to clear things up.
ALT-R simulates a software reset
like SYS 64738. You can do a
hard-reset using ALT-SHIFT-R.
ALT-SHIFT-R simulates a reset button.
In most cases, just using ALT-R will
work just fine.
RAM EXPANSION
From here on in I'll assume you're
comfortable with how the CCS64 menus
work and can select functions and
sub-menus on your own. If you have
difficulty, refer to the CCS64 manual.
Another cool feature available
from the "Cartridge" menu is the "RAM
Expansion Unit". This simulates a
Commodore 17xx REU. Here you can turn
the REU on or off, which is the same
as inserting or removing the REU. You
can also set the size of the REU
anywhere from 128 Kilobytes to 16
Megabytes using the "Size" function.
Imagine what you can do with a 16
Megabyte Commodore 64!
Additionally, the "File Enable"
function allows you to preserve the
contents of the virtual REU between
sessions. When you quit CCS64 (ALT-Q)
the contents will be saved in a file
on your PC hard drive. The next time
you start CCS64, the REU contents will
automatically be reloaded (assuming
you leave "RAM Expansion Unit" set to
"On".)
The cartridge port emulation of
CCS64 is superior to the same port on
a real C-64 in that you can keep the
REU enabled even when using other
cartridges (e.g. CCSMon.) You can
think of this as having a switched
dual cartridge port expander plugged
into the C-64 (similar to the
"Aprospand-64").
TAPE IMAGES
There are two types of tape images
available for C-64 emulators. They use
different principles, but you don't
have to know the technical details
since both work just as well on CCS.
They are .T64 and .TAP files.
From the CCS main menu (F10)
select "Tape Device 1". Now use the
file listing to navigate to the
drive/directory containing the tape
image file. Select the tape image you
want and press F1 to "Examine" it. CCS
has now inserted the tape into the
virtual tape drive.
Here is something new. Tape images
can contain more than one C-64 program
or data file (just like a real C-64
tape.) The menu displayed at this
point allows you to select a program
from the virtual cassette to LOAD and
RUN it. Highlight the desired program
and press F1. CCS will now reset the
emulated C-64. The command LOAD "",1
will automatically be entered. In a
short amount of time the program will
have loaded and it will automatically
RUN.
PROGRAM IMAGES
A program image is simply a C-64
program as it exists in the C-64's
memory. Typically this will be a BASIC
program, or a machine language program
with a BASIC startup (e.g. 10 SYS
2061.) These files are identified by
their .PRG extension.
You can make a .PRG im