home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
utilities
/
utilsc
/
cpc
/
!CPC_Demo
/
!Help
< prev
next >
Wrap
Text File
|
1996-02-14
|
15KB
|
331 lines
!CPC_Demo - An Amstrad CPC emulator for Acorn RISC OS machines (demo)
=====================================================================
[For information on the full version of this emulator, !CPC, see
the end of this document.]
Copyright
---------
!CPC_Demo is Copyright (C) 1996 Mark RISON. This copyright extends to
all the files provided in or with !CPC_Demo, except the ROM images
below. The BASIC and OS ROM images are copyright Amstrad and Locomotive
Software, and are distributed with their kind permission. The AMSDOS
ROM image is copyright Amstrad and Digital Research (Novell), and is
distributed with their kind permission (well, Amstrad's at least...).
Conditions of use
-----------------
You may only use !CPC_Demo for your own personal and non-commercial
purposes. You may freely distribute !CPC_Demo (including by FTP or BBS)
provided you do not modify it in any way (you must distribute it in its
entirety, including this file), and do not charge anything, either
directly or indirectly. You may not, however, put !CPC_Demo on CD
without explicit permission.
No guarantee of any kind is made concerning operation of !CPC_Demo. You
use !CPC_Demo at your own risk; you are advised to save all your work
before launching !CPC_Demo.
Introduction
------------
The Amstrad CPC range of computers was a hugely successful range of
8-bit computers. There were 3 models. The CPC464 was released in 1984
and consisted of a central unit, a cassette unit and a monitor in one
package. The CPC664 was released in 1985, and had a 3" disc drive
instead of the cassette unit. The CPC6128 was released soon after, the
only significant difference being the addition of 64K of bank-switched
RAM.
All models were based around a Z80 CPU running at an effective 3.3 MHz.
There was 64K of main RAM and 32K of ROM to contain the BASIC and OS;
the disc drive models had an extra 16K ROM to hold the DOS, and the 6128
had an extra 64K of RAM. The screen could be operated in one of three
modes: 640x200 in 2 colours, 320x200 in 4 colours, and 160x200 in 16
colours -- from a palette of 27 colours (27 greens on the green screen
models). Sound capabilities ran to 3 channels with noise and hardware
enveloping if desired. Two joysticks could be used with the machine.
CP/M was an option on the disc models (CP/M 2.2 on both, and CP/M+ on
the 6128).
!CPC_Demo aims to emulate a real CPC in sufficient detail to allow
programs written for the CPC to be used under RISC OS. This entails
quite considerable translation from the CPC world to the RISC OS world;
nonetheless !CPC_Demo is roughly as fast as the real thing on machines
with an ARM3 (and faster with newer machines).
A reminder of RISC OS operations
--------------------------------
To open a RISC OS directory, double-click on it. If it's an application
(it's got a ! at the start), press Shift as well, else the application
will be run. To copy files from one directory to another, open both and
drag from one to the other. To load a given file into a text editor
(e.g. !Edit) double-click on it while pressing Shift -- when you've
finished the editing pressing F3 followed by Return should save the
edited version. Finally, to access the command line (to type *
commands, setting variables, for example), press F12 -- when you've
finished press Return on its own.
File formats
------------
The most common file format (after dearchiving) is the disc image
format. This can be recognised by filenames ending in .DSK (/DSK under
the standard DOS mapping). Discs must be used under AMSDOS (see below)
-- use CAT to see what's on them, and something like RUN"MEGADETH" to
run them (file extensions need not normally be specified). Do not
attempt to write to discs: !CPC_Demo does not support this at present.
Discs should be placed in the subdirectory Discs in !CPC_Demo. If you
set a disc's filetype to "CPC disc" (&065 at present), double-clicking on
the disc with launch !CPC_Demo with it.
Another file format is the snapshot format, recognisable by filenames
ending in .SNA (/SNA). Snaps must be used under PseuDOS (see below).
Use |SNAP,"MEGADETH" to launch snapshot MEGADETH. Snaps should be
placed in the subdirectory Snaps in !CPC_Demo. If you set a snap's
filetype to "CPC snap" (&064 at present), double-clicking on the snap
will launch !CPC_Demo with it. |SNAPS will give a list of snapshots.
The last file format is the native AMSDOS format, consisting of one or
more files with filenames typically ending in .BAS or .BIN. These need
to be converted to PseuDOS format using !AmsToArc (see below), and
placed in the subdirectory Tapes in !CPC_Demo. These programs are
typically launched with RUN"MEGADETH".
Using !CPC_Demo
---------------
!CPC_Demo should mostly behave just like a real CPC! !CPC_Demo has some
extra features, however. You can reset the CPC not only using
Shift-Ctrl-Esc, but also by pressing Alt-Esc (you may need to try a few
times for this to work). You can quit !CPC_Demo by pressing Alt-F12, or
by typing |QUIT (if you're using PseuDOS and not AMSDOS).
One joystick is emulated, using Insert, Home, Page Up, Page Down, Num
Lock and keypad / for left, right, up, down, main fire and secondary
fire respectively. !CPC_Demo also supports two standard Acorn
joysticks, as found on the A3010, which will behave just like CPC
joysticks.
If a program seems to be attempting to constantly change the screen
colours, you can press Alt-P to lock out changes. You can try this a
few times until you get a suitable palette. If a program seems to be
attempting to constantly change the screen resolution, you can press
Alt-M to lock out changes -- again, you can keep trying until the bit
you're interested in appears right.
You can squeeze extra performance out of !CPC by running in MODE 12
rather than a higher resolution mode such as MODE 20. This is
especially the case for games which use screen banking for smooth
animation -- symptoms are faint horizontal interleave patterns on the
screen. In certain cases, turning palette switching off (with Alt-P)
will also speed things up.
If the machine seems to hang and neither Alt-Esc nor Alt-F12 seem to get
things back under control, you can attempt to kill the emulator off
with Alt-Delete. This should be a solution of last resort! If even
this does not seem to help, well ... you were advised to save all your
work before launching !CPC_Demo, weren't you?
PseuDOS and AMSDOS
------------------
AMSDOS is the original DOS provided with disc models. It supports discs
containing about 170K of data. Various | commands are provided by it to
handle disc files (|ERA, |REN, etc.). !CPC_Demo only supports enough of
AMSDOS to get standard disc images to load -- complex disc operations,
as well as writing, will fail. To use AMSDOS the system variable
CPC$DOS should be set to AMSDOS (use *SET CPC$DOS AMSDOS from the
command line to do so). The disc to be used can be set in CPC$Disc
(e.g. *SET CPC$Disc Megadeth); alternatively, if this variable is not
set, a list of available discs will be given, and you will be asked to
choose one.
PseuDOS is a DOS whose purpose is to allow 'tape' files to be used.
These files are held as RISC OS files in a special format. PseuDOS
provides full access to these files, both in reading and in writing. In
addition, PseuDOS redefines the CPC keyboard mappings to follow the UK
RISC OS keyboard -- so if you're using AMSDOS some keys will be wrong
(in particular, " will be obtained with Shift-2). To use PseuDOS the
system variable CPC$DOS should be set to PseuDOS (*SET CPC$DOS PseuDOS).
!AmsToArc (as found in the Support subdirectory in !CPC_Demo) should be
used to make PseuDOS format files -- see the help file there for more
details.
CheckSnap and CheckDisc, as found in the Support subdirectory, allow you
to check whether a snap or a disc is broken in some way. Simply
double-click to launch, and give the name of the snap or disc to be
checked when prompted.
Treat both AMSDOS and PseuDOS with care -- don't do unexpected things.
For example, if you are using floppy discs, try to keep the disc in the
drive all the time. If you are saving under