home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 June / PCO_06_97.ISO / filesbbs / DOS / CPCEMU14.ARJ / CPCEMU_E.TXT < prev    next >
Encoding:
Text File  |  1996-03-20  |  127.2 KB  |  3,468 lines

  1.  
  2.     ▓▓▓▓▓▓▒  ▓▓▓▓▓▓▓▓▒▒      ▓▓▓▓▓▓▒   ▓▓▓▓▓▓▓▓▒  ▓▓▓▓    ▓▓▓▓▒▒  ▓▓▒▒     ▓▓▒▒
  3.   ▓▓▒▒▒▒▒▒   ▓▓▒▒▒▒▒▓▓▒▒   ▓▓▒▒▒▒▒▒    ▓▓▒▒▒▒▒▒   ▓▓▒▓▓  ▓▓▒▓▓▒▒  ▓▓▒▒     ▓▓▒▒
  4.  ▓▓▒▒        ▓▓▒▒   ▓▓▒▒  ▓▓▒▒         ▓▓▒▒▒      ▓▓▒▒ ▓▓▒▒ ▓▓▒▒  ▓▓▒▒     ▓▓▒▒
  5.  ▓▓▒▒        ▓▓▓▓▓▓▓▓▒▒   ▓▓▒▒         ▓▓▓▓▓▓▓▓▒  ▓▓▒▒ ▒▒▒  ▓▓▒▒  ▓▓▒▒     ▓▓▒▒
  6.  ▓▓▒▒        ▓▓▒▒▒▒▒▒     ▓▓▒▒         ▓▓▒▒▒▒▒▒   ▓▓▒▒      ▓▓▒▒  ▓▓▒▒     ▓▓▒▒
  7.   ▓▓▒▒       ▓▓▒▒          ▓▓▒▒        ▓▓▒▒       ▓▓▒▒      ▓▓▒▒  ▓▓▒▒     ▓▓▒▒
  8.     ▓▓▓▓▓▓▒  ▓▓▒▒            ▓▓▓▓▓▓▒   ▓▓▓▓▓▓▓▓▒  ▓▓▒▒      ▓▓▒▒   ▓▓▓▓▓▓▓▓▓▒▒
  9.     ▒▒▒▒▒▒▒  ▒▒▒▒            ▒▒▒▒▒▒▒   ▒▒▒▒▒▒▒▒▒  ▒▒▒▒      ▒▒▒▒   ▒▒▒▒▒▒▒▒▒▒
  10.  
  11.                                                                       v1.4
  12.  
  13.  
  14.                                   D O C U M E N T A T I O N
  15.  
  16.  
  17.                                   (c) Marco Vieth, March 1996
  18.  
  19.  
  20.  
  21.  
  22. -------------------------------------------------------------------------------
  23.  
  24.  
  25.  
  26.  
  27. Table of Contents:
  28.  
  29.        1.  Introduction
  30.            1.1  Tips on how you should read this documentation
  31.            1.2  Copyright, guaranty
  32.            1.3  What is a CPC?
  33.            1.4  What does CPCEMU offer you?
  34.  
  35.        2.  Installation of CPCEMU
  36.            2.1  Files which comprise the CPCEMU package
  37.            2.2  Requirements and installation
  38.            2.3  Hints about memory and soundcards
  39.              2.3.1  Using EMS Memory
  40.              2.3.2  Defining the BLASTER environment
  41.              2.3.2  Defining the ULTRASND environment
  42.  
  43.        3.  Differences between CPC and CPCEMU
  44.            3.1  Keyboard
  45.            3.2  Loading of Programs, Menus
  46.              3.2.1  Loading from Disk, Menus
  47.                     - The Insert Disk Menu
  48.                     - The File-Selection Menu
  49.              3.2.2  Loading from and saving on cassette
  50.              3.2.3  Loading and saving of snapshots
  51.  
  52.        4.  Changing the Configuration
  53.            4.1  The setup menu
  54.            4.2  The configuration file
  55.            4.3  Command line parameters
  56.  
  57.        5.  Data Transfer CPC <-> PC
  58.            5.1  The disk as a media
  59.              5.1.1  The disk transfer program CPCTRANS
  60.              5.1.2  The format- and copy-utility 22DISK by SYDEX
  61.            5.2  The parallel interface
  62.              - The parallel adapter
  63.            5.3  The serial interface
  64.            5.4  Other possibilities
  65.  
  66.        6.  Sources of Supply, Support, and Acknowledgments
  67.            6.1  Where can I get CPC software ?
  68.            6.2  News, exchange experiences
  69.            6.3  If you have questions or suggestions
  70.            6.4  Other Amstrad CPC emulators
  71.            6.5  Plans for future releases of CPCEMU
  72.            6.6  Acknowledgments
  73.            6.7  Registered trademarks
  74.  
  75.        7.  Internal Information about CPCEMU
  76.            "Black Box", with its own table of contents
  77.  
  78.  
  79.        Appendix:
  80.  
  81.        A.1  Glossary
  82.        A.2  Bibliography
  83.        A.3  Index
  84.  
  85.  
  86. ---------------------------
  87.  
  88.  
  89.  
  90.  
  91.  
  92. 1.  Introduction
  93. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  94.  
  95.  
  96. Welcome to the world of emulators!
  97.  
  98. What?! You want to know what CPCEMU is, and what you can do with this
  99. strange program that has yellow writing on a blue screen, displaying
  100. "Syntax Error" after every input?
  101.  
  102.  
  103. To avoid long searching, here it is:
  104.         CPCEMU emulates an Amstrad CPC 464, 664 or 6128 with many
  105.         extensions. In other words, the program imitates the
  106.         behaviour of the older Amstrad computers on your new PC.
  107.  
  108. For what purpose?
  109. Well, if you still have no idea, then you will not have any need for CPCEMU.
  110.  
  111. Some reasons:
  112.         - nostalgia (oh, how nice my good old CPC was ...)
  113.         - better performance compared to the original
  114.         - better environment to develop programs in
  115.         - playing games
  116.         - work (yes, a CPC is good enough for simple word processing)
  117.         - [                                  ] <- insert other reasons
  118.                                                   of your own.
  119.  
  120.  
  121.  
  122.  
  123. 1.1  Tips on how you should read this documentation
  124. ===================================================
  125.  
  126.  
  127.   You should play around with the online help first, but if you need
  128.   in-depth or more precise information, read on...
  129.  
  130.  
  131.   I have tried to arrange the documentation in an orderly fashion. Should
  132.   you still have questions (after reading it several times!), you can
  133.   contact me. You can certainly do so, even if everything is perfectly
  134.   clear to you. See chapter 6 (Sources, Support, ...) on how you can reach
  135.   me.
  136.  
  137.   In chapter 1 (Introduction) I describe how best to read this
  138.   documentation, who owns the copyright and some things about the CPC in
  139.   general.
  140.  
  141.   In chapter 2 (Installation) it finally starts. You will be told how to
  142.   install and start CPCEMU.
  143.  
  144.   Chapter 3 (Differences between the CPC and CPCEMU) deals with features of
  145.   the emulator you should know about, if you are familiar with a real CPC.
  146.   Mainly I will describe keyboard, disks, tapes and snapshots.
  147.  
  148.   In chapter 4 (Changing the Configuration) I describe how to tailor CPCEMU
  149.   to your needs. Maybe then you will be able to run your favorite program.
  150.  
  151.   In chapter 5 (Data Transfer CPC <-> PC) you find out how to get your old
  152.   CPC programs onto the PC. Further, the utilities that come with CPCEMU
  153.   are explained.
  154.  
  155.   In chapter 6 (Sources, Support, and Acknowledgments) you will be told how
  156.   to optain the latest version of CPCEMU and who you can contact should you
  157.   have any questions.
  158.  
  159.   Chapter 7 (Internal Information about CPCEMU) is for experts only. The
  160.   "official" part of the user manual ends with the previous chapter. I
  161.   describe how one goes about programming an emulator and what you need to
  162.   know to do it. The debug menu of CPCEMU is also explained, which allows
  163.   you to analyze the processor and memory at *any* time during the
  164.   emulation. Casual users should skip this chapter, at least during the
  165.   first reading.
  166.  
  167.   Appendix A.1 contains a glossary with descriptions of the most important
  168.   technical terms. Appendix A.2 is the bibliography and A.3 the index.
  169.  
  170.  
  171.  
  172. 1.2  Copyright, Guaranty
  173. ========================
  174.  
  175.   CPCEMU was developed by (see also section 6.3):
  176.  
  177.          Marco Vieth
  178.          Auf dem Uekern 4
  179.          D-33165 Lichtenau
  180.          Germany
  181.  
  182.  
  183.   CPCEMU is Freeware, which means you can give the program to friends and
  184.   acquaintances for *free*. Archive maintainers are allowed to include
  185.   CPCEMU in their program collections for "downloading". Shareware
  186.   distributors are allowed to distribute CPCEMU, if they only take a small
  187.   fee for copying. Compared to Public Domain, Freeware does not mean that
  188.   it is "free" and you may do anything with it. I still retain the
  189.   copyright.
  190.  
  191.   All software and documentation is provided "as is" without warranty of
  192.   any kind.
  193.  
  194.  
  195.   Although this program is freeware, I would certainly accept any sort of
  196.   support, technical or financial.
  197.   See chapter 6 for more details.
  198.  
  199.  
  200.  
  201. 1.3  What is a CPC?
  202. ===================
  203.  
  204.   If you already know what a CPC is, simply skip this section and continue
  205.   reading with 1.4.
  206.  
  207.  
  208.  
  209.  
  210.   Still here?
  211.  
  212.   I do not want to go into technical details now, but will rather give you
  213.   a retrospective view so that you may better understand what a CPC is.
  214.  
  215.   CPC is an abbreviation for Colour Personal Computer. Computers of this
  216.   type were first built in 1984 by the british company Amstrad and sold
  217.   under different names in other countries.
  218.   It was the period of the home computer; Commodore C64, Sinclair Spectrum,
  219.   Atari 800XL, ... when the CPC 464 was unveiled. It had as much RAM as the
  220.   Commodore C64 (namely 64 KB), a built in cassette recorder and Locomotive
  221.   BASIC 1.0. It was followed up by the CPC 664 which had a built-in 3" disk
  222.   drive and a slightly extended Locomotive BASIC 1.1. The CPC 6128 came in
  223.   1985, with 128 KB RAM and nearly the same features as the CPC 664. 3"
  224.   disks were awfully expensive, but more stable than the 5.25" disks
  225.   (nearly as stable as today's 3.5"), and they were noticably faster versus
  226.   tape speed, very unlike the situation with the C64 ...
  227.   All three models were sold with either a colour or a green monitor, which
  228.   had the power supply built in. Later, two or three other models (the CPC+
  229.   for example) were introduced. The BASIC was with nearly 178 instructions
  230.   powerful and fast. One could program graphics, sound and even interrupt
  231.   handling all in BASIC without the use of PEEKs and POKEs. The software
  232.   supply increased dramatically over the years.
  233.  
  234.  
  235.  
  236.  
  237. 1.4  What does CPCEMU offer you?
  238. ================================
  239.  
  240.   The following is a short overview of what CPCEMU offers you. Subsequent
  241.   sections of the documentation will go into more detail.
  242.  
  243.   CPC graphics in 3 different screen modes (X x Y x COLOURS):
  244.        Mode 0: 180x200x16
  245.        Mode 1: 320x200x4
  246.        Mode 2: 640x200x2
  247.        (With VESA BIOS these graphics can be displayed in resolutions
  248.         ranging from 640x400x16 up to 1280x1024x16, depending on your
  249.         monitor and the VGA card used.)
  250.  
  251.   Sound: either through the PC-speaker, Soundblaster (3 channels, stereo)
  252.        or Gravis UltraSound (3 channels + noise, stereo)
  253.  
  254.   Memory:
  255.        ROM: OS, BASIC, AMSDOS, up to circa 13 additional ROMs (with EMS)
  256.        RAM: 64KB, 128KB, up to 576KB Dk'tronics compatible RAM (with EMS)
  257.  
  258.   Disk: Special disk images, with the extension .DSK
  259.  
  260.   Cassette: Standard files under DOS, e.g. CPC BASIC- and binary files
  261.        with the extensions .BAS and .BIN respectively.
  262.  
  263.   Snapshots: You can make memory dumps of running programs in order to
  264.        continue them later. Snapshots have the extension .SNA .
  265.  
  266.   Speed: On a 386/33 with EMS-memory, CPCEMU is faster than the original.
  267.        A realtime mode allows you to slow down the emulation to exact CPC
  268.        speed. This realtime mode works well on a 486DX2/66.
  269.  
  270.  
  271.  
  272.  
  273. 2.  Installation of CPCEMU
  274. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  275.  
  276. In this chapter you will learn, how to install and start CPCEMU. Section 2.2
  277. lists some points on why you should be using EMS memory and how to set up
  278. the Soundblaster environment. Full user defined installation with the
  279. configuration file is described later in chapter 4 (Changing the
  280. Configuration).
  281.  
  282.  
  283.  
  284. 2.1  Files which comprise the CPCEMU package
  285. ============================================
  286.  
  287.   You have received the CPCEMUxx.xxx package with the following files:
  288.   (I have put the directories in brackets where you will find the files
  289.   after the installation.)
  290.  
  291.   COPYMATE.ROM   ROM with a copy program (ROM)
  292.   CPC464.BAT     CPC 464 startup file
  293.   CPC464.ROM     ROM (firmware+BASIC) of a CPC 464 (ROM)
  294.   CPC664.BAT     ditto, but for CPC 664
  295.   CPC664.ROM     (ROM)
  296.   CPC6128.BAT    ditto, but for CPC 6128
  297.   CPC6128.ROM    (ROM)
  298.   CPCADOS.ROM    AMSDOS for all CPCs (ROM)
  299.   CPCEMU.CFG     the configuration file for all CPCs (or CPCEMU0.CFG)
  300.   CPCEMU.DAT     data file for CPCEMU
  301.   CPCEMU.DBF     database with pokes
  302.   CPCEMU.EXE     the emulator
  303.   CPCEMU.HLP     the online help, try pressing F1...
  304.   CPCEMU.MSG     the message file (required)
  305.   CPCEMU_D.TXT   German documentation
  306.   CPCEMU_E.TXT   English documentation (this file)
  307.   CPCEMU_F.TXT   French documentation
  308.   CPCPARA.BAS    Locomotive-BASIC program for the parallel adapter (UTILITY)
  309.   CPCPD1.DSK     disk image with some example Public Domain programs (DISC)
  310.   CPCREC.BAS     Locomotive-BASIC program to receive programs (UTILITY)
  311.   CPCT0.BAT      batch file for CPCTRANS.EXE (example) (UTILITY)
  312.   CPCTRANS.CFG   configuration file for CPCTRANS
  313.   CPCTRANS.EXE   transfer program for disk images (UTILITY)
  314.   CPMDISKS.DEF   format definitions for 22DISK (UTILITY)
  315.   FILE_ID.DIZ    archive description for BBSes
  316.   INSTALL.BAT    batch file for installation
  317.   PCPARA.EXE     PC side of the parallel adapter (UTILITY)
  318.   README_D.TXT   German Readme
  319.   README_E.TXT   English Readme
  320.   README_F.TXT   French Readme
  321.   README_S.TXT   Spanish Readme
  322.   ROMGET.BAS     Locomotive-BASIC program for saving ROMs (UTILITY)
  323.   SNA2GIF.EXE    a snapshot to GIF converter: grap your CPC screens...
  324.  
  325.  
  326.   The original Amstrad ROMs are included. The Firmware is copyright by
  327.   Locomotive Software; the BASIC is copyright by Amstrad. Amstrad and
  328.   Locomotive have given me permission to distribute the ROMs with CPCEMU.
  329.  
  330.  
  331.  
  332. 2.2  Requirements and Installation
  333. ==================================
  334.  
  335.   You will need at least (there is no upper limit of course)
  336.   - PC AT 386 with VGA graphics
  337.   - MS-DOS, possibly with EMS,  or
  338.     Novell DOS (DRDOS)  or
  339.     OS/2 2.x DOS box.
  340.   - If you want to start programs from within ZIP archives you will need
  341.     the program PKUNZIP in your DOS searchpath for extraction.
  342.  
  343.  
  344.   The installation itself is very simple:
  345.   Copy the CPCEMUxx.ZIP archive onto your hard disc and decompress it with
  346.   'PKUNZIP CPCEMUxx.ZIP'. Run INSTALL.BAT to create the necessary
  347.   subdirectories. Start CPC464.BAT, CPC664.BAT or CPC6128.BAT depending on
  348.   what CPC you would like to emulate. After the configuration has been
  349.   shown, the well-known yellow and blue CPC opening screen appears.
  350.   You can quit the emulator with F12 and see the online help with F1.
  351.   It is best to try that now, before reading any further ...
  352.  
  353.  
  354.  
  355.  
  356.   If some errors occur during the configuration, you will be put into the
  357.   so-called debug-menu, which you can exit with 'q' <RETURN>. In such
  358.   cases, it is sometimes useful to redirect the start-up messages into a
  359.   file, e.g. with 'CPCEMU > INIT.TXT'. Then you are able to analyze the
  360.   problem later.
  361.  
  362.  
  363.  
  364. 2.3  Hints about memory and soundcards
  365. ======================================
  366.  
  367.   The following will help you if you desire a particulary fast emulation
  368.   or if your soundcard is not recognized correctly.
  369.  
  370.  
  371.   2.3.1  Using EMS Memory
  372.   -----------------------
  373.  
  374.     You should have hardware or emulated EMS on your PC (EMS=Expanded Memory
  375.     System). This speeds up the emulation in a significant way, especially
  376.     with BASIC. Simulated EMS is too slow.
  377.     All you need is EMM (Expanded Memory Manager) supporting the LIM 4.0
  378.     standard (LIM EMS 4.0).
  379.  
  380.     If EMS usage is possible, a memory count 'EMS xxx Bytes ok.' will
  381.     appear during initialization.
  382.     Otherwise you will see "Sorry, using conventional memory".
  383.  
  384.     Example under OS/2 2.x (settings for the window):
  385.         EMS_FRAME_LOCATION = auto
  386.         EMS_HIGH_OS_MAP_REGION = 32     (or more)
  387.         EMS_LOW_OS_MAP_REGION = 0       (or more)
  388.  
  389.     Example under DOS in the CONFIG.SYS file:
  390.         DEVICE=C:\DOS\HIMEM.SYS
  391.         DEVICE=C:\DOS\EMM386.EXE 1024
  392.         ...
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.   2.3.2  Defining the BLASTER environment
  400.   ---------------------------------------
  401.  
  402.     In order to hear sound from your Soundblaster you must set the BLASTER
  403.     environment variable properly. Either use the program 'SET-ENV.EXE' (or
  404.     'SBTEST.EXE') included with your soundcard or modify AUTOEXEC.BAT
  405.     directly. In AUTOEXEC.BAT, you should have a line similar to the
  406.     following:
  407.         SET BLASTER=A220 I7 D1 T3
  408.  
  409.     Where:
  410.       A specifies the base address (0x220)
  411.       I specifies the IRQ (7)
  412.       D specifies the DMA channel (1)
  413.       T specifies the type of the soundcard:
  414.           1 : Soundblaster 1.0/1.5
  415.           2 : Soundblaster Pro
  416.           3 : Soundblaster 2.0/2.5
  417.           4 : Soundblaster Pro 3/Pro 4.0
  418.           5 : Soundblaster Pro (Microchannel)
  419.           6 : Soundblaster 16
  420.  
  421.     For version 2,4,5 & 6 stereo sound is enabled.
  422.  
  423.     There are also some more parameters which will be ignored:
  424.       H specifies the 16 bit DMA channel for 16 bit cards (5)
  425.       M specifies the base address of the sound blaster mixer (224)
  426.       P specifies the port address for MIDI (330)
  427.  
  428.  
  429.  
  430.     If you hear no sound, use A388 (instead of A220). This works for
  431.     Media Vision Pro Audio Spectrum 16 and possibly other sound cards
  432.     with SB emulation. It may also work with an Adlib Card.
  433.     (Joe Cotroneo)
  434.  
  435.  
  436.  
  437.  
  438.   2.3.3  Defining the ULTRASND environment
  439.   ----------------------------------------
  440.  
  441.     In order to get sound with your GUS (Gravis Ultrasound Classic/ MAX/
  442.     ACE), you must have the ULTRASND environment variable defined.
  443.  
  444.     Your AUTOEXEC.BAT file should contain the following line:
  445.       SET ULTRASND=220,1,1,11,7
  446.  
  447.     Where the meaning of the numbers is (in the order shown):
  448.  
  449.         220 is the base address (0x220)
  450.           1 is the GUS DMA channel
  451.           1 is the SoundBlaster DMA channel
  452.          11 is the GUS IRQ
  453.           7 is the SoundBlaster IRQ
  454.  
  455.     Important are the base address and the GUS IRQ. All other values must
  456.     be specified in order for the emulation to work properly.
  457.  
  458.  
  459.  
  460.  
  461. 3.  Differences between CPC and CPCEMU
  462. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  463.  
  464. In this chapter, I describe those features that differentiate CPCEMU from a
  465. real CPC. The section that follows will explain those keys on the keyboard
  466. that have a special meaning during emulation, especially the function keys.
  467. Afterwards you will be told how to load from disk or cassette.
  468.  
  469.  
  470.  
  471. 3.1  Keyboard
  472. =============
  473.  
  474.   Maybe you have already noticed that the function keys of the PC do not
  475.   map directly to those of the CPC. They cause some strange output which I
  476.   will describe below. Or maybe you have been looking for the COPY-key for
  477.   hours...
  478.   All CPC keys are really emulated somewhere, you can be sure of that. Here
  479.   the secrets are unveiled:
  480.  
  481.   - ALT, ALTgr : COPY on a CPC
  482.  
  483.   - PAUSE Key : suspends the PC, until it is pressed again. If the function
  484.     keys of the PC do not react anymore, you may have the PAUSE Key
  485.     enabled.
  486.  
  487.   - Keypad : Depending on the "Num Lock" state, the keypad functions in a
  488.     different way. With "Num Lock" enabled, the keypad represents the
  489.     function keys of the CPC, otherwise it will emulate joystick 0. If you
  490.     want to use an analog PC joystick, you have to calibrate it first. (See
  491.     chapter 4 - Changing the Configuration).
  492.  
  493.   For completeness:
  494.   - Page up/down: Moves the whole CPC screen.
  495.     (Don't ask me for what purpose.)
  496.  
  497.   And, of course, the function keys.
  498.   F1  : Online-Help Key. Could be the most important key when you start out.
  499.   F2  : Toggles between the CPC screen (normal view) and  message screen
  500.         (that one with a red border). This screen may show some control
  501.         messages.
  502.   F3  : Insert a disk, see section 3.2.1
  503.   F4  : Toggle sound on/off
  504.   F5  : Load a snapshot (memory dump), see section 3.2.3
  505.   F6  : Save a snapshot, see section 3.2.3
  506.   F7  : Setup menu, see section 4.1
  507.   F8 :  Hard reset, acts like a reset button on a CPC (or switching the CPC
  508.         off and back on again). Use this, if CTRL/SHIFT/ESC does not work
  509.         any more.
  510.   F9  : Reserved for future use
  511.   F10 : Debug menu, explained in chapter 7. If you stumble inadvertently into
  512.         this menu, press 'r' for R)un or 'q' for Q)uit.
  513.   F11 : Reserved for future use
  514.   F12 : Exit the emulator
  515.  
  516.  
  517.  
  518.  
  519. 3.2  Loading of programs, menus
  520. ===============================
  521.  
  522.   In this section you will learn how to load programs from disk, tape or
  523.   snapshots. Certainly the same goes for saving. How to use the menu is
  524.   described, too.
  525.  
  526.  
  527.  
  528.   3.2.1  Loading from Disk, Menus
  529.   -------------------------------
  530.  
  531.     Under normal conditions AMSDOS (Amstrad DOS) is active, and all file
  532.     instructions use the disk.
  533.     You do not need to insert a real CPC disk into your PC drive every time
  534.     you acces a file (apart from the fact that you may have 3" CPC disks
  535.     only).
  536.     To obtain better speed a CPC disk is contained inside a so-called disk
  537.     image. This file can be located anywhere on the hard disk (or on a high
  538.     density disk).
  539.  
  540.     Here some BASIC AMSDOS instructions:
  541.     - CAT <RETURN> : displays the catalogue
  542.  
  543.     - With 'RUN"<filename>"'  you load and start a program.
  544.       You may omit the ending quotation marks. This instruction is useful
  545.       for BASIC programs having the extension .BAS, and in many cases for
  546.       binary programs with the extension .BIN .
  547.  
  548.       A simple way to run a program:
  549.       1. Input the filename, e.g.  'disc' *without* pressing <RETURN>
  550.       2. Hold down the CTRL key and press cursor-left (the cursor moves
  551.          back to the first column now)
  552.       3. Still hold down the CTRL key and press the ENTER key on the keypad
  553.          (RUN"disc   appears and the program will be loaded)
  554.  
  555.     - LOAD"<filename>" loads a program without starting it. You can inspect
  556.       BASIC programs with LIST and start them with RUN. Usually binary
  557.       programs will not load with LOAD, but try using the MEMORY instruction
  558.       first, e.g. 'MEMORY &1fff'.
  559.  
  560.     - SAVE"<filename>" saves a BASIC program. For binary programs you have
  561.       to specify some more parameters, e.g. 'SAVE"<filename>",b,&c000,&4000'
  562.       will save the screen.
  563.  
  564.     - MERGE"<filename>" is also possible. It merges one BASIC program to
  565.       another already contained in memory.
  566.  
  567.  
  568.     Some special AMSDOS instructions are introduced by a vertical dash:
  569.     - |A, |B to select the drive (also possible with |DRIVE,0 or 1)
  570.     - |DIR,"<filename pattern>" to see the directory.
  571.       Important note: Use the following on a CPC 464:
  572.            a$="<filename pattern>" : |DIR,@a$
  573.     - |ERA,"<filename>" erases a file.
  574.       Important note: Use the following on a CPC 464:
  575.            a$="<filename>" : |ERA,@a$
  576.     - |REN,"<new name>","<old name>" to rename a file.
  577.       Important note: Use the following on a CPC 464:
  578.            a$="<new name>" : b$="<old name>" : |REN,@a$,@b$
  579.     - |TAPE  to switch to the cassette. Described in the next section.
  580.     - |DISC  to switch back to disk
  581.     There are some other instructions but they are not so important.
  582.  
  583.  
  584.  
  585.     The Insert Disk Menu
  586.     --------------------
  587.  
  588.     Until now you can use only one disk, the one already "inserted" in
  589.     the drive. To insert another disk, simply press F3 and the following
  590.     menu appears:
  591.  
  592.                      Insert_Disk
  593.                      Drive              0
  594.                      Side_Select        0
  595.                      Write_Protected    0
  596.  
  597.     With the cursor keys <up/down> you can select a line. You can also do
  598.     that by typing in letters (go back with <DEL>). Change numbers with
  599.     the cursor keys <left/right> or with direct input of digits.
  600.     <RETURN> in any line (e.g. the first one) takes the changes. It would
  601.     be dismissed with <ESC>.
  602.     "Drive" is the desired drive (0=A, 1=B); "Side Select" is a side switch
  603.     for double sided disks, it has no effect when using a single sided
  604.     format.
  605.     With "Write Protected" you can mark a disk as write protected
  606.     (0=No, 1=Yes, write protected).
  607.  
  608.  
  609.     The File-Selection Menu
  610.     -----------------------
  611.  
  612.     Now press <RETURN> and a directory of the disk drive appears.
  613.     Select a new disk with the same methods as described above.
  614.  
  615.     If there is already a disk lying inside the drive you do not need to
  616.     remove it first as in real life. This is automatically done.
  617.     At the bottom of the screen this disk is displayed.
  618.  
  619.     You will see at most 15 files, if there are more, "[]" appears.
  620.     - <HOME> goes home to the first filename, <END> to the last one
  621.     - <Page up/down> scrolls in pages through the list
  622.     - <RETURN> takes the selected name, <ESC> escapes.
  623.     You can also select names directly by pressing a first letter.
  624.  
  625.     When using the mouse, click "[]" for <page up>, "[]" for <page down>,
  626.     "[<]" for <cursor left>, "[>]" for <cursor right> and [ok] for <return>.
  627.     Use "[■]" as <ESC>. Use the right mouse button to mark a line.
  628.  
  629.     ".." is the parent directory; [A], [B], ... are the available drives.
  630.     Please select only floppy drives with a disk inserted. Otherwise
  631.     you could get some trouble.
  632.  
  633.     It is also possible to insert disks from inside ZIP archives. Select
  634.     a ZIP archive by pressing <RETURN> and its directory is displayed as a
  635.     normal directory. If you select a file from inside a ZIP archive, it
  636.     is automatically extracted into a temporary file. For this feature
  637.     you will need the program PKUNZIP somewhere in the DOS searchpath,
  638.     or in the CPCEMU directory.
  639.     Temporary files are automatically deleted if they are not needed any
  640.     more. Changes are *not* written to the ZIP archive. If you save
  641.     something on a disk image inside a ZIP file, it will be lost after
  642.     you insert another disk. If you want to change disk images inside
  643.     ZIP archives, extract them before starting CPCEMU.
  644.  
  645.     How to create disk images from CPC disks that you own is described in
  646.     chapter 5  (Data Transfer CPC <-> PC).
  647.  
  648.  
  649.  
  650.  
  651.   3.2.2  Loading from and saving on cassette
  652.   ------------------------------------------
  653.  
  654.     What actually is a cassette for CPCEMU?
  655.     Well, files on cassette are regular files in DOS directories.
  656.     After the '|TAPE' instruction the BASIC instructions for file handling
  657.     use the cassette. But only those starting not with "|".
  658.     Now you can use the instructions described in the section above
  659.     (CAT, RUN", LOAD", SAVE", MERGE") for cassette.
  660.     If you omit a filename, the file selection menu will appear which was
  661.     described in the previous section.
  662.     With SAVE"" you can either overwrite an existing file or create a new
  663.     one by specifying a new name in the last line "(new name)".
  664.  
  665.     Certainly you can load programs from inside ZIP archives, saving
  666.     is ignored.
  667.  
  668.     You only get such a fine cassette drive with the emulator!
  669.  
  670.  
  671.  
  672.   3.2.3  Loading and Saving of snapshots
  673.   --------------------------------------
  674.  
  675.     Snapshots are memory dumps that not only contain the actual memory
  676.     contents but also the internal states of the hardware chips, e.g. the
  677.     processor.
  678.     At any time you can interrupt the running program and save it as a
  679.     snapshot. Later you can load it, and continue at the same position you
  680.     were at when you interrupted it.
  681.     You create a snapshot with F6. Specify the snapshot size, if it is
  682.     64K or 128K. 128K snapshots only make sense if the second memory bank
  683.     is in use. In this case use "128K Snapshot = 1", with the meaning 1=Yes.
  684.  
  685.     The file selection menu is the same as already described with the disk,
  686.     with the additional comments given for the cassette (3.2.1 and 3.2.2).
  687.  
  688.     You can reload a snapshot with F5.
  689.  
  690.  
  691.  
  692.  
  693. 4.  Changing the Configuration
  694. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  695.  
  696. In this chapter you will learn how to configure CPCEMU for your needs.
  697. The setup menu is described as well as the configuration file and the
  698. command line parameters.
  699.  
  700.  
  701.  
  702. 4.1  The setup menu
  703. ===================
  704.  
  705.   This is the simplest way to make adjustments to CPCEMU. Nevertheless
  706.   this menu does not let you change all settings. To give an example, if
  707.   you want to use additional ROMs you must use the configuration file
  708.   described in section 4.2.
  709.  
  710.   As already mentioned in the keyboard section, you get into the setup menu
  711.   with F7. The following menu then appears:
  712.  
  713.        Setting:             Value:   Short explanation:
  714.   -----------------------------------------------------------------------
  715.        ___Emulation
  716.        Emulation_Delay      0
  717.        Emulation_Speed      1
  718.        Interrupt_Frequency  300
  719.        Interrupt_Resume     1
  720.        Realtime             0
  721.  
  722.        ___Screen
  723.        Colour_Screen        1
  724.        Multimode_Update     0
  725.        Palette_Change       1
  726.        Screen_Offset        0
  727.        Video_Mode           0
  728.        Vsync_Position       5
  729.  
  730.        ___Sound
  731.        Sound_Enabled        1
  732.        Sound_Device         2
  733.        Sb_Delay             35
  734.        Sb_Delay0            6
  735.  
  736.        ___Control
  737.        Joy0_Calibrate
  738.        Joy1_Calibrate
  739.        Kbd_Language         0
  740.        Mouse_Enabled        1
  741.  
  742.        ___Ppi_Settings
  743.        Company_Name         7
  744.        Ppi_50Hz             1
  745.        Ppi_Exp_Signal       1
  746.  
  747.        ___Misc
  748.        Amsdos_Disabled      0
  749.        Amsdos_Speedup       1
  750.        Break_Mask           3
  751.        Ems_Enabled          1
  752.        Language             0
  753.        Tape_Bypass          1
  754.        CPC_Type             2
  755.  
  756.        Load_Configuration
  757.        Restart_Emulation
  758.        Save_Configuration
  759.        Poke_Database            database with cheats for games
  760.        Dos_Shell
  761.        Continue
  762.  
  763.  
  764.   Select the settings as already described in 3.2.1.
  765.  
  766.  
  767.   Emulation_Delay
  768.     This option allows you to slow down the emulation if it is too fast.
  769.     0 means no delay, 100 is a small delay, 300 some more ...
  770.  
  771.   Emulation_Speed
  772.     0   = slow Z80 emulation
  773.     1   = fast Z80 emulation
  774.  
  775.   Interrupt_Frequency
  776.     To change the frequency with which interrupts are generated.
  777.     On a real CPC this is always 300 Hertz. If you raise this value
  778.     many programs seem to run faster, but there is less computing power
  779.     between two interrupts. If you own a slow computer you may have
  780.     to lower this value to 100 or 200 sometimes. Possible values are
  781.     18 to circa 600.
  782.     For further information look at chapter 7.
  783.  
  784.   Interrupt_Resume
  785.     Another of these options one cannot explain without a lot of background
  786.     information. Without EMS (Expanded Memory) this option is 0 which means
  787.     that interrupts can be skipped. Certainly this is not desired, but
  788.     with 1 the emulation is getting too slow. With EMS this option is 1,
  789.     so CPCEMU tries to handle every interrupt.
  790.     Important note:
  791.     It seems that CP/M Plus only runs with EMS and this option = 0 !
  792.     For further information look at chapter 7.
  793.  
  794.   Realtime
  795.     Enables the realtime CPC. The emulator inserts waits to be as fast
  796.     as a real CPC.
  797.  
  798.   Colour_Screen
  799.     Emulation of a green or colour screen by changing the palette.
  800.  
  801.   Multimode_Update
  802.     If programs use several modes simultaneously on the screen, switch on
  803.     this option. Then CPCEMU tries to handle it correctly.
  804.     Per default this option is switched off because it does not work
  805.     properly in all cases.
  806.  
  807.   Palette_Change
  808.     Set this option to 0 to disable palette changes. This makes sense
  809.     if you cannot see anything because the screen flickers too much.
  810.     If you press the function key F8 to cause a hardware reset, this
  811.     option is reset to 1 automatically.
  812.     Hint: If palette update is disabled and you see completely wrong
  813.     colours, try pressing F2 twice.
  814.  
  815.   Screen_Offset
  816.     Specify the number of lines the CPC screen should be moved.
  817.     Usually you do not need this option. You get the same effect by
  818.     pressing <Page Up> and <Page Down>. Possible values: 0=no offset,
  819.     up to circa 25.
  820.  
  821.   Video_Mode
  822.     Set the video mode of the VGA card.
  823.     0 = 640x200x16 (default)
  824.     1 = 640x350x16
  825.     2 = 640x480x16
  826.     and if you have a VESA-BIOS, mostly:
  827.     3 = 800x600x16
  828.     4 = 1024x768x16
  829.     5 = 1280x1024x16
  830.     ...
  831.     WARNING:
  832.     Do use modes >= 3 only, if you monitor supports them!
  833.     If it makes some strange noise, switch it off immediately!
  834.     But this should happen only with old monitors.
  835.  
  836.   Vsync_Position
  837.     Commonly you will not need this option, but nothing will be damaged if
  838.     you try it. One time during the screen update there is a vertical
  839.     frame fly with a special bit set, the so-called VSYNC bit (vertical
  840.     synchronization). You can define the position, where the VSYNC should
  841.     occur. Possible values are 0 to 5. For further information look at
  842.     chapter 7.
  843.  
  844.   Sound_Enabled
  845.     Enables the sound output. 1=on, 0=off. You can also press the
  846.     function key F4 instead.
  847.  
  848.   Sound_Device
  849.     Set the sound output device.
  850.     0 = none
  851.     1 = PC speaker
  852.     2 = Soundblaster
  853.     3 = Soundblaster Pro
  854.     4 = GUS (Gravis Ultrasound), thanks to Ulrich Doewich
  855.  
  856.   Sb_Delay
  857.     Set the amount of delay after every write access to the soundcard.
  858.     With lower values (e.g. 0) the sound output is speed up. If problems
  859.     with the soundcard occur, use 35.
  860.  
  861.   Sb_Delay0
  862.     Another delay for the Soundblaster. Do not change it.
  863.  
  864.   Joy0_Calibrate
  865.     You surely know it from other programs that you have to calibrate the
  866.     analog PC joystick first. Select this setting by pressing <RETURN>,
  867.     move the joystick to the upper left, then to the lower right.
  868.     Then some parameters are displayed. If you always want to use your
  869.     joystick then take note of these parameters and write them in the
  870.     configuration file (see next section). Nevertheless you have to repeat
  871.     the calibration if you change the clock.
  872.  
  873.   Joy1_Calibrate
  874.     Same as Joy0_Calibrate, but for joystick 1.
  875.  
  876.   Kbd_Language
  877.     With this option you can select the keyboard mapping for other countries.
  878.     0 = UK, default
  879.     1 = GR, "German-like" keyboard. Unfortunately it is impossible to have
  880.      a full German keyboard because SHIFTed keys cannot be mapped
  881.      to non-SHIFTed. But "Z" and "Y" are swapped, and some other characters
  882.      altered.
  883.     2 = FR, "French-like" keyboard. After the introduction of a German
  884.         keyboard the French will not stand in the rain. Some parts of the
  885.         AZERTY Keyboard are realized. But is has the same problems as
  886.         the German one.
  887.  
  888.   Mouse_Enabled
  889.     Enables mouse usage in different menus.
  890.  
  891.   Company_Name
  892.     Company name in the opening screen.
  893.     0 = Isp
  894.     1 = Triumph
  895.     2 = Saisho
  896.     3 = Solavox
  897.     4 = Awa
  898.     5 = Schneider
  899.     6 = Orion
  900.     7 = Amstrad
  901.  
  902.   Ppi_50Hz
  903.     The CPC can operate with
  904.       0 - 60 Hz, or
  905.       1 - 50 Hz (default in Germany, France)
  906.     During a reset bit 4 of port B PPI is checked and the CRTC is
  907.     initialized properly.
  908.     Let it on 50 Hz.
  909.  
  910.   Ppi_Exp_Signal
  911.     Some Expansions cards set this signal.
  912.     On CPC 464 set, if a disc drive is connected.
  913.     On CPC 6128 always set.
  914.  
  915.   Amsdos_Disabled
  916.     Forbids the initialization if the AMSDOS. This is useful if you
  917.     want to load programs from cassette without giving the instruction
  918.     '|TAPE' every time.
  919.     Certainly you could simply make a comment of the ROM_BLOCK line
  920.     for the AMSDOS (with ROM_BLOCK you specify the ROM to load), but
  921.     with the effect that no AMSDOS is present at all.
  922.     Using this option the AMSDOS is still present for some programs.
  923.  
  924.   Amsdos_Speedup
  925.     Permits an AMSDOS ROM modification speeding up disk accesses.
  926.     This is done by minimizing the motor waiting times, not necessary
  927.     for the emulator.
  928.  
  929.   Break_Mask
  930.     Only for debugging purposes. With the value 3 from the configuration
  931.     file some errors are suppressed, caused by illegal instructions.
  932.     Do not change this value!
  933.  
  934.   Ems_Enabled
  935.     Permits the usage of EMS memory (Expanded Memory System).
  936.     If no or not enough EMS memory is available, CPCEMU uses conventional
  937.     memory automatically.
  938.     For further information about EMS consult 2.3.1 and chapter 7.
  939.   Language
  940.     Language for help messages.
  941.       0=UK (English)
  942.       1=GR (German)
  943.       2=FR (French)
  944.       3=SP (Spanish)
  945.  
  946.   Tape_Bypass
  947.     Permit the usage of the cassette.
  948.     Further information about the TAPE bypass are in chapter 7.
  949.  
  950.   CPC_Type
  951.     Set desired CPC type
  952.     0 = CPC 464
  953.     1 = CPC 664
  954.     2 = CPC 6128
  955.     3 = CPC 464+ (?)
  956.     4 = CPC 6128+ (?)
  957.     5 = unknown
  958.     In order to use type 3 or 4, you have to supply ROM images in CPCEMU.CFG
  959.     first.
  960.  
  961.   Load_Configuration
  962.     Load another configuration file saved by "Save_Configuration".
  963.     Some parameters may have no effect until you select "Restart_Emulation".
  964.  
  965.   Restart_Emulation
  966.     After loading a configuration with "Load_Configuration", you can
  967.     restart the emulation with the new values.
  968.  
  969.   Save_Configuration
  970.     Save the current configuration.
  971.     Note that you cannot overwrite the master configuration file CPCEMU.CFG.
  972.  
  973.   Poke_Database
  974.     You are just playing a game you cannot solve? Then try this selection.
  975.     If your game is in this list, you can make it easier by getting
  976.     infinite lifes, e.g. You can also extend the list (CPCEMU.DBF) by your
  977.     own pokes. See chapter 7 for a description of this file.
  978.  
  979.   Dos_Shell
  980.     Open a DOS shell with much free memory, which you can exit with 'EXIT'.
  981.  
  982.   Continue
  983.     Take the values and continue with the emulation.
  984.     You get the same effect by pressing <RETURN> in any line with a value.
  985.  
  986.  
  987.  
  988.  
  989.  
  990. 4.2  The configuration file
  991. ===========================
  992.  
  993.   Now you will learn another way to configure CPCEMU.
  994.   At first CPCEMU reads the configuration file CPCEMU.CFG per default.
  995.   The structure of this file is described so that you will be able to
  996.   use your own ROMs, change the keyboard language permanently, etc...
  997.  
  998.  
  999.   Have a look at the file CPCEMU.CFG:
  1000.  
  1001.     ;CPCEMU.CFG - The Configuration File for CPCEMU
  1002.     ;...
  1003.     ;
  1004.     ;configuration for CPC 464, 664 and 6128
  1005.     ;
  1006.     SHOW_CONFIG=1            ;should the configuration be displayed?
  1007.     ROM_PATH = ".\ROM"       ;path to ROM images
  1008.     ...
  1009.  
  1010.  
  1011.   Already with these few lines you get the simple structure:
  1012.   Comments start with a semicolon (";"). Options are changed by writing
  1013.   a key-word followed by "=" followed by a <value>. The <value> depends
  1014.   on the key-word and is either a string or a number. Numbers can be given
  1015.   in decimal, hexadecimal ("0x") or binary ("%") notation.
  1016.  
  1017.   When knowing the meaning of the key-words, you can adjust the values
  1018.   with a text processing system for your own needs.
  1019.  
  1020.  
  1021.   You already know most of the keywords from the setup menu.
  1022.   First an alphabetical ordered list of all key-words:
  1023.  
  1024.  
  1025.   #ENDIF
  1026.   #IFCPC
  1027.   AMSDOS_DISABLED
  1028.   AMSDOS_SPEEDUP
  1029.   BREAK_MASK
  1030.   COLOUR_SCREEN
  1031.   COMPANY_NAME
  1032.   CPC_TYPE
  1033.   DRIVE_A
  1034.   DRIVE_B
  1035.   EMS_ENABLED
  1036.   EMULATION_DELAY
  1037.   EMULATION_SPEED
  1038.   HELP_FILE
  1039.   INTERRUPT_FREQUENCY
  1040.   INTERRUPT_RESUME
  1041.   JOY0_CALIBRATE
  1042.   JOY1_CALIBRATE
  1043.   KBD_LANGUAGE
  1044.   LANGUAGE
  1045.   MOUSE_ENABLED
  1046.   MULTIMODE_UPDATE
  1047.   PALETTE_CHANGE
  1048.   POKE_DATABASE
  1049.   PPI_50HZ
  1050.   PPI_EXP_SIGNAL
  1051.   PRINTER
  1052.   RAM_SIZE
  1053.   REALTIME
  1054.   ROM_BLOCK
  1055.   ROM_PATH
  1056.   SB_DELAY
  1057.   SB_DELAY0
  1058.   SCREEN_OFFSET
  1059.   SHOW_CONFIG
  1060.   SNAPSHOT
  1061.   SOUND_DEVICE
  1062.   SOUND_ENABLED
  1063.   TAPE_BYPASS
  1064.   TAPE_PATH
  1065.   TMP_PATH
  1066.   VIDEO_MODE
  1067.   VSYNC_POSITION
  1068.  
  1069.  
  1070.   Following are the meanings of the new key-words:
  1071.  
  1072.  
  1073.   - #ENDIF, #IFCPC
  1074.     Some control instructions for conditional configuration depending on
  1075.     the desired CPC:
  1076.       #IFCPC <CPC type> ... #ENDIF
  1077.     For <CPC type> all four types from "CPC_TYPE" are valid.
  1078.     Consequently you need only one configuration file for all CPCs.
  1079.     The batch files CPC464.BAT, CPC664.BAT and CPC6128.BAT set the
  1080.     desired type with command line parameters. These are explained
  1081.     in the next section.
  1082.  
  1083.   - DRIVE_A = "<path+filename>"
  1084.     Set the path to disk images. If you use a filename as path, this
  1085.     disk is automatically inserted into drive A.
  1086.     Section 3.2.1 described Loading and Saving on Diskette.
  1087.  
  1088.   - DRIVE_B = "<path+filename>"
  1089.     Same as DRIVE_A, but for drive B.
  1090.  
  1091.   - JOY0_CALIBRATE = <xcen>, <ycen>, <xdead>, <ydead>
  1092.     Define a joystick calibration for your analog joystick.
  1093.     Use the values displayed after the joystick calibration in the
  1094.     setup menu (see section 4.1).
  1095.     This is a key-word with 4 values. You must always specify all of them.
  1096.     4 times zero means not calibrated.
  1097.  
  1098.   - JOY1_CALIBRATE = <xcen>, <ycen>, <xdead>, <ydead>
  1099.     Same as JOY0_CALIBRATE.
  1100.  
  1101.   - POKE_DATABASE = "<path+filename>"
  1102.     Set the poke database file (CPCEMU.DBF).
  1103.  
  1104.   - PRINTER = "<path+filename>"
  1105.     Set the printer file where line printer outputs are collected.
  1106.     It is cleared at every emulation start.
  1107.     After quitting the emulator, you can send it to your printer
  1108.     with 'COPY <filename> prn:'.
  1109.  
  1110.   - ROM_BLOCK = <ROM-number>,  "<filename>", <ROM-position>
  1111.     Describe what ROM should be loaded and where.
  1112.     Repeat this line for every ROM you want to load.
  1113.     The maximum number of ROMs is circa 20, if you use EMS.
  1114.  
  1115.     - <ROM-number> is the number assigned to the ROM, that means
  1116.       it is selected by 'OUT &DF00,<ROM-number>' .
  1117.       Possible values are:
  1118.         0       : Foreground ROM (e.g. BASIC)
  1119.         1 - 251 : Background ROMs. On a CPC 664/6128, the ROMs
  1120.                   1-15 are automatically initialized during reset
  1121.                   (on a CPC 464 only 1-7).
  1122.                   The AMSDOS ROM has always the number 7.
  1123.         255     : Lower ROM (e.g. OS; has only in emulator this
  1124.                   number).
  1125.     - <filename> is a file in the directory ROM_PATH, which
  1126.       contains the ROM.
  1127.  
  1128.     - <ROM position> is naturally 0. If a file contains more ROMs, this
  1129.       is the desired ROM position 0, 1, 2, ...
  1130.         ROM_BLOCK = 255, "CPC6128.ROM", 0
  1131.         ROM_BLOCK = 0  , "CPC6128.ROM", 1
  1132.       The lower ROM and the foreground ROM are loaded one after another
  1133.       from the same file.
  1134.  
  1135.   - ROM_PATH = "<path>"
  1136.     Set the path to ROM images. In the configuration file this path
  1137.     is set to ".\ROM". The ROMs itselfs are defined with the key-word
  1138.     ROM_BLOCK.
  1139.  
  1140.   - SHOW_CONFIG = {1, 0}
  1141.     Permits the display of the configuration overview when starting the
  1142.     emulator.
  1143.  
  1144.   - SNAPSHOT = "<path+filename>"
  1145.     Set the path to snapshots. If you specify a snapshot file as path name,
  1146.     this snapshot is automatically started.
  1147.     Look at section 3.2.3 for more details.
  1148.  
  1149.   - TAPE_PATH = "<path>"
  1150.     Set the path to tape files. In the configuration file this path is
  1151.     set to ".\TAPE".
  1152.     Look at section 3.2.2 for more details.
  1153.  
  1154.   - TMP_PATH = "<path>"
  1155.     Set the path for temporary files. They are mainly needed if you
  1156.     select a file from inside a ZIP archive and CPCEMU needs to
  1157.     extract it with PKUNZIP.
  1158.  
  1159.  
  1160.  
  1161.  
  1162. 4.3  Command Line Parameters
  1163. ============================
  1164.  
  1165.   As you know from other programs, it is also possible with CPCEMU to
  1166.   use command line parameters. But currently there are only a few of them.
  1167.  
  1168.  
  1169.   Execute CPCxxx.BAT with the following options:
  1170.        /f       : use the fast mode (default)
  1171.        /s       : use the slow mode
  1172.        /d       : use the debug mode, described in chapter 7
  1173.        /x       : disable EMS usage
  1174.        /c <file>: specify another configuration file, overriding the
  1175.                   default CPCEMU.CFG. See section 4.2.
  1176.        /t <type>: set the desired CPC type 464, 664 or 6128 with
  1177.                   /t 0, /t 1 or /t 2 respectively.
  1178.        /h       : displays a help screen
  1179.  
  1180.   The option "/d" is automatically used, if an unknown option was specified.
  1181.   Instead if "/" you can also use "-" known from UNIX.
  1182.  
  1183.  
  1184.  
  1185.  
  1186. 5.  Data Transfer CPC <-> PC
  1187. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  1188.  
  1189. What can you do with a good emulator when you do not have any programs for
  1190. it or if you do not see any possibility to get programs from a CPC across
  1191. to the PC?
  1192. In chapter 6 (Supply, ...) some ftp sources are listed where
  1193. CPC software can be found.
  1194. This chapter deals with the data transfer of CPC software to the PC.
  1195. Some utilities for the different possible methods of doing this are
  1196. described (disk, with parallel or serial interface).
  1197.  
  1198.  
  1199.  
  1200.  
  1201. 5.1  Disk as a media
  1202. ====================
  1203.  
  1204.   This is the simplest way to get CPC software across to the PC. You only
  1205.   need a CPC with a second drive of the correct size. Correct size means
  1206.   that the disks must also fit in your PC drive. (If not, you could still
  1207.   try to connect a 3" drive to your PC.) The PC is persuaded to recognize
  1208.   the CPC formatted disk using a utility to read the CPC formatted disks.
  1209.   This utility is called CPCTRANS.
  1210.  
  1211.  
  1212.  
  1213.   5.1.1  The disk transfer program CPCTRANS
  1214.   -----------------------------------------
  1215.  
  1216.     I have developed CPCTRANS to create disk images from CPC disks.
  1217.     Standard CPC formats as well as double sided Vortex formats are
  1218.     supported.
  1219.     CPCTRANS is not intended to transfer copy protected formats!
  1220.     When calling CPCTRANS without parameters you will get a short
  1221.     overview.
  1222.     CPCTRANS is similar to the DOS COPY-instruction:
  1223.     'CPCTRANS <source> <destination> <options>'.
  1224.     Examples:
  1225.     'CPCTRANS B: DISK1.DSK' copies the disk in drive B to the disk image
  1226.     DISK1.DSK. If it does not exist, it is created.
  1227.     'CPCTRANS DISK1.DSK B:' writes the disk image back to the disk in
  1228.     drive B.
  1229.  
  1230.     The first command only runs for the DATA format.
  1231.     For other formats you have to use an option:
  1232.       /f 0    : DATA format (default)
  1233.       /f 1    : DATA format, double-sided
  1234.       /f 2    : SYSTEM format
  1235.       /f 3    : SYSTEM format, double-sided
  1236.       /f 4    : VORTEX format, double-sided
  1237.       /f 5    : unknown, CPCTRANS tries to detect it
  1238.       /f 6    : +3DOS
  1239.     Note the space between "/f" and the number.
  1240.     When using the double sided DATA- or SYSTEM-format, you can select
  1241.     the side A or B in the disk menu (3.2.1).
  1242.  
  1243.     When writing back a disk image, the disk in the drive must have
  1244.     the same format! For simple formats you can use 22DISK, described
  1245.     in the next section.
  1246.  
  1247.     For copying the B-side of a disk, use the option "/s 1"
  1248.     With 'CPCTRANS B: DISK1.DSK /s 1' only the B-side of the disk is
  1249.     copied, with 'CPCTRANS DISK1.DSK B: /s 1' it is written back.
  1250.  
  1251.     The option "/v" turns on "verify", so CPCTRANS checks if the copy
  1252.     is correct. That is indeed a bit slower but increases security.
  1253.  
  1254.     The option "/t <count>" sets the number of tracks to copy.
  1255.     Normally it is 40 tracks, only for the VORTEX format it is 80.
  1256.  
  1257.     The option "/q" (quick format) is a feature with which you can format
  1258.     a disk image, instead of copying data onto it. Nevertheless you have
  1259.     to specify a valid drive as first parameter, even if it is not used.
  1260.     Example:
  1261.     'CPCTRANS a: SYSTEM.DSK /f 2 /q' formats SYSTEM.DSK as a disk image
  1262.     with SYSTEM format.
  1263.  
  1264.  
  1265.  
  1266.   5.1.2  The format- and copy-utility 22DISK by SYDEX
  1267.   ---------------------------------------------------
  1268.  
  1269.     This program is available as shareware. With correct definitions you
  1270.     can use nearly all CP/M formats!
  1271.     Unfortunately just the CPC formats are not included with the evaluation
  1272.     copy of 22DISK. Therefore I have defined the formats in the file
  1273.     CPMDISKS.DEF. You will find them in the UTILITY subdirectory.
  1274.     What can you do with 22DISK?
  1275.     You can transfer single files back and forth between DOS and non-DOS
  1276.     formats, format disks and so on.
  1277.     Copy the CPC files into the TAPE directory. Read section 3.2.2 for
  1278.     an explanation how to load them.
  1279.  
  1280.  
  1281.  
  1282. 5.2  The parallel interface
  1283. ===========================
  1284.  
  1285.   If you own a CPC without second drive, you can do the data transfer
  1286.   over the parallel interface.
  1287.  
  1288.   If you own a CPC without a second drive, you can do the data transfer
  1289.   over the parallel interface. The original idea came from Gilles Molinari,
  1290.   he had also written some Turbo Pascal programs. But maybe you belong to
  1291.   the group of users, who do not have a Turbo Pascal compiler on their CPC,
  1292.   so you could not do much with the Pascal source. Therefore I have
  1293.   rewritten the utilities in Locomotive BASIC, and extended it by adding
  1294.   the direction PC->CPC.
  1295.   Thus it is possible to transfer files back and forth between CPC and PC!
  1296.   The CPC and PC are coupled together via their parallel interfaces.
  1297.  
  1298.   If you own a CPC 6128 with Centronics connectors and compare them with
  1299.   a printer you will note that CPC and PC fit together excellently when
  1300.   using a standard PC printer cable! But do not do that now, please read
  1301.   further.
  1302.   It seems that only Schneider CPCs have Centronics connectors. If you
  1303.   have an Amstrad CPC 6128 with simple edge connectors or a CPC 464,664,
  1304.   use the diagram at the end of this section.
  1305.  
  1306.   First you have to jump over two hurdles:
  1307.   1. constructing a simple adapter
  1308.   2. input a short program into the CPC
  1309.  
  1310.   Wait!   Do not skip the rest!
  1311.  
  1312.   Both steps are really simple, because
  1313.   1. is possible without soldering     and
  1314.   2. is indeed very short (about 30 lines BASIC)
  1315.  
  1316.   To step 2.
  1317.   The program you need calls CPCREC.BAS and is in the UTILITY directory.
  1318.   It is saved in ASCII, so you can send it to your printer without
  1319.   problems and type it into your CPC.
  1320.   It does its job like a thin rope sent through a pipe in order to
  1321.   get a thick cable through it.
  1322.   Here, the thin rope is CPCREC.BAS which receives files from the PC.
  1323.   With this little utility you get CPCPARA.BAS (the thick cable) over
  1324.   to the CPC. With CPCPARA.BAS you can receive and transmit. Then you
  1325.   will not need CPCREC.BAS any more.
  1326.   On the PC side you use PCPARA.EXE, also included in the UTILITY
  1327.   directory.
  1328.  
  1329.   But before you input CPCREC.BAS, have a look at step 1:
  1330.  
  1331.  
  1332.   The parallel adapter
  1333.   --------------------
  1334.  
  1335.   You need an adapter between the PC printer cable and the PC printer
  1336.   connector.
  1337.   This goes easiest with a RS-232 wiring box, which has a 25pin D-Sub
  1338.   male (plug) and a 25pin D-Sub female (socket) connector.
  1339.   By plugging short wires into the box you can realize any possible
  1340.   connection between both sides. Usually such a box is used - as its
  1341.   name already says - for adapting RS-232 interfaces. Serial connections
  1342.   do not function at the first, you know.
  1343.   We use the adapter the other way round, that is, the plug is for the PC
  1344.   side and the socket for the printer cable.
  1345.  
  1346.   Plug it together now:
  1347.  
  1348.         Plug for the PC printer-         Socket for the printer cable
  1349.         connector (left side):             (right side):
  1350.  
  1351.                Pin 2     ---------------       Pin 11
  1352.                Pin 10    ---------------       Pin 8
  1353.                Pin 11    ---------------       Pin 1
  1354.                Pin 12    ---------------       Pin 7
  1355.                Pin 13    ---------------       Pin 6
  1356.                Pin 15    ---------------       Pin 5
  1357.                Pin 19    ---------------       Pin 19
  1358.  
  1359.  
  1360.   As you see, you do not need all the 25 wires, only 7 of them.
  1361.  
  1362.   Although the wiring box is cheap if you buy it from a electronic
  1363.   mail-order company, you can get it even cheaper by using a jumper box.
  1364.   Then you have to solder the wires. The cheapest way is to buy a 25pin
  1365.   D-Sub plug, a 25pin D-Sub socket, a box and some wires.
  1366.  
  1367.   Now I presume you have connected the computers with the adapter and
  1368.   CPCREC.BAS on your CPC.
  1369.   What now?
  1370.  
  1371.   1. On the CPC :  Run CPCREC.BAS (after you have saved it)
  1372.   2. On the PC  :  Run 'PCPARA /s CPCPARA.BAS'
  1373.  
  1374.   Now it gets exciting, if no error messages appear on the PC screen, all
  1375.   is OK, the file is on the CPC.
  1376.  
  1377.   If the PC does not send anything and reports an error message the
  1378.   connection may be incorrect.
  1379.   If it is sending ("Sending block xx"), but some error messages appear
  1380.   occasionally, your PC may be to fast or to slow. The direction
  1381.   PC->CPC is very time crucial, you know.
  1382.   On my 386/33 I must not have EMS memory installed, otherwise it is too
  1383.   slow. On a very fast computer it could be necessary to use the turbo
  1384.   switch.
  1385.   Use the program under plain DOS, not OS/2 or Windows.
  1386.  
  1387.   If it does not run at all, send me a note.
  1388.   In the meantime you can type in the program CPCPARA.BAS which is
  1389.   a little longer. The direction CPC->PC runs always, also under OS/2,
  1390.   because it is nearly the same as printing. The PC behaves like a printer.
  1391.  
  1392.   I assume that you have CPCPARA.BAS on your CPC now.
  1393.   Transfer files from CPC to PC in the following way:
  1394.   1. On the PC:  Run 'PCPARA /r'.
  1395.   2. On the CPC: Run CPCPARA, select S)end and input every file you want
  1396.      to transmit. (Run 'PCPARA /r' for every file you want to transmit,
  1397.      CPCPARA runs in an endless loop.)
  1398.  
  1399.  
  1400.   Thus, use PCPARA in the following way:
  1401.   - PCPARA /r : start PCPARA in receiving mode
  1402.   - PCPARA /s <file> : sends <file> to the CPC, if you use 'TRM:' as
  1403.     file, you will get a terminal.
  1404.  
  1405.   All programs in the UTILITY directory display an overview about its
  1406.   options if you call them without any parameters.
  1407.  
  1408.  
  1409.   WARNING:
  1410.   Even if the construction is very simple, I cannot guarantee that you
  1411.   do not damage anything. If your CPC printer-port is damaged afterwards,
  1412.   it is a pity and rather an unfortunate accident. Perhaps it would be
  1413.   also damaged if you had simply connected a printer.
  1414.   For example, I know a former CPC user whose keyboard did not work
  1415.   properly any more one day. After the repair he was told that he
  1416.   should not plug the joystick in while the computer is switched on!
  1417.   (Well, I do so always ?!?)
  1418.  
  1419.   To come back:
  1420.   I have built the adapter successfully. And have even sometimes
  1421.   "forgotten" to insert the adapter in the connection and have had no
  1422.   problems.
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.   Diagrams by David Chapeau, if your CPC has no Centronics connectors:
  1429.  
  1430.    34 <- - - - - - - - 18      \
  1431.    ______________________      |
  1432.   |   ________________   |     |
  1433.   |  |________________|  |   - | ---> Printer Connector (Female) to CPC
  1434.   |______________________|     |
  1435.                                |
  1436.    17 < - - - - - - - - 1      |
  1437.                                |
  1438.      ||||||||||||||||||        |
  1439.      ||||||||||||||||||        \
  1440.      ||||||||||||||||||         >   "CPC 6128 to DMP 2160" Cable
  1441.      ||||||||||||||||||        /
  1442.      ||||||||||||||||||        |
  1443.                                |
  1444.    1 - - - - - - - - > 18      |
  1445.   ________________________     |
  1446.   \    ______________    /     |
  1447.    \  |______________|  /    - | ---> Centronics Connector (Male)
  1448.     \__________________/       |
  1449.                                |
  1450.    19 - - - - - - - -> 36      /
  1451.  
  1452.  
  1453.  
  1454.    18 < - - - - - - - - 1      \
  1455.   ________________________     |
  1456.   \    ______________    /     |
  1457.    \  |______________|  /    - | ---> Centronics Connector (Female)
  1458.     \__________________/       |
  1459.                                |
  1460.    36 <- - - - - - - - 19      |
  1461.                                |
  1462.      ||||||||||||||||||        |
  1463.      ||||||||||||||||||        \
  1464.      ||||||||||||||||||         >   PC Parallel Adapter
  1465.      ||||||||||||||||||        /
  1466.      ||||||||||||||||||        |
  1467.                                |
  1468.    1 - - - - - - - - > 13      |
  1469.   ________________________     |
  1470.   \  ..................  /     |
  1471.    \  ................  /    - | ---> Sub-D Connector (Male) to PC (LPT1)
  1472.     \__________________/       |
  1473.                                |
  1474.    14 - - - - - - - -> 25      /
  1475.  
  1476.  
  1477.    13 < - - - - - - - - 1      \
  1478.   ________________________     |
  1479.   \  ..................  /     |
  1480.    \  ................  /    - | ---> Sub-D Connector (Female)
  1481.     \__________________/       |
  1482.                                |
  1483.    25 <- - - - - - - - 14      |
  1484.                                |
  1485.      ||||||||||||||||||        |
  1486.      ||||||||||||||||||        \
  1487.      ||||||||||||||||||         >   RS 232 "Wired Box"
  1488.      ||||||||||||||||||        /
  1489.      ||||||||||||||||||        |
  1490.                                |
  1491.    1 - - - - - - - - > 13      |
  1492.   ________________________     |
  1493.   \  ..................  /     |
  1494.    \  ................  /    - | ---> Sub-D Connector (Male) to PC (LPT1)
  1495.     \__________________/       |
  1496.                                |
  1497.    14 - - - - - - - -> 25      /
  1498.  
  1499.  
  1500.  
  1501.    Printer    Centronics   Centronics      Sub-D        Sub-D        Sub-D
  1502.   Connector    (Female)      (Male)      Connector    Connector    Connector
  1503.  
  1504.       1 ---------  1            1 ---------  1           11 ---------  2
  1505.             .                         .                   8 --------- 10
  1506.             .                         .                   1 --------- 11
  1507.             .                         .                   7 --------- 12
  1508.      17 --------- 17           14 --------- 14            6 --------- 13
  1509.      18 --------- 19           19 --------- 19            5 --------- 15
  1510.             .                  21 --------- 20           19 --------- 19
  1511.             .                  23 --------- 21
  1512.             .                  25 --------- 22
  1513.      34 --------- 35           27 --------- 23
  1514.                                29 --------- 24
  1515.                                30 --------- 25
  1516.                                31 --------- 16
  1517.                                32 --------- 15
  1518.                                33 --------- 18
  1519.                                36 --------- 17
  1520.  
  1521.  
  1522.  
  1523.   CPCPARA -> PCPARA (v1.1) transfer speed:
  1524.  
  1525.   Times to transfer a block of 0x4000 Bytes from CPC to PC with the
  1526.   parallel adapter:
  1527.  
  1528.   Source on CPC:                bytes/s:        bit/s:
  1529.   -----------------------------------------------------------
  1530.   File from floppy disk:        1600            12800
  1531.  
  1532.   Block from memory:            2240            17920
  1533.  
  1534.   Block from memory, no ints.:  2445            19560
  1535.   (poke &b941,&c9 on CPC 6128)
  1536.  
  1537.   The block sending was controlled in BASIC (inside CPCPARA):
  1538.   defstr a:a="test.$$$":call sstr,@a
  1539.   a=string$(&80):for i=1 to &80:call sstr,@a:next:call sbyte,0:stop
  1540.  
  1541.  
  1542.   You can read further information about the parallel adapter in chapter 7.
  1543.  
  1544.  
  1545.  
  1546. 5.3  The serial interface
  1547. =========================
  1548.  
  1549.   If you own a serial interface for the CPC, you can certainly use it
  1550.   for data transfer to the PC.
  1551.  
  1552.  
  1553.  
  1554. 5.4  Other possibilities
  1555. ========================
  1556.  
  1557.   There are some more fantastic ways to get the software onto the PC.
  1558.  
  1559.   - Connect the 3" disk drive to the PC. Some (older) models should fit to
  1560.     a 5.25" connection.
  1561.  
  1562.   - With a detour over the the Spectrum+3: read the 3" disk on the
  1563.     Spectrum+3, convert it in the Spectrum format and use a utility
  1564.     to read it on the PC. This utility comes with the Spectrum emulator Z80
  1565.     by Gerton Lunter.
  1566.  
  1567.   - When is was necessary to get the ROM yourself, someone told me about
  1568.     his way:
  1569.     He took the ROM chip out of the CPC and inserted it instead of the VGA
  1570.     BIOS. With a small program he was able to read the contents.
  1571.  
  1572.   - Maybe you will find another way?
  1573.  
  1574.  
  1575.  
  1576.  
  1577. 6.  Supply, Support, and Acknowledgments
  1578. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  1579.  
  1580. In this chapter you will read where to get CPC software and whom to ask in
  1581. the case of questions. Furthermore, I mention some other Amstrad emulators.
  1582.  
  1583.  
  1584. 6.1  Where can I get CPC software?
  1585. ==================================
  1586.  
  1587.   This is no problem if you have access to the Internet.
  1588.   As for Spectrum emulators, a number of "anonymous" archives exist
  1589.   where you can get CPC software via FTP or WWW.
  1590.  
  1591.  
  1592.   FTP
  1593.   ---
  1594.  
  1595.   - ftp.nvg.unit.no:/pub/cpc, thanks to Arnt Gulbrandsen for
  1596.     creating the site, and to Noel Llopis to maintain it,
  1597.     one of the biggest archives for CPC programs;
  1598.     send what you have in /pub/cpc/incoming
  1599.  
  1600.   - sunshine.informatik.uni-wuerzburg.de:/pub/joscho/cpcemu
  1601.     mirror of ftp.nvg.unit.no. Any questions, remarks and additions to
  1602.     joscho@informatik.uni-wuerzburg.de
  1603.     If you have problems connecting to Norway you can try this.
  1604.  
  1605.   - ftp.ibp.fr:/pub/amstrad, thanks to Remy Card, all questions about
  1606.     this site should be directed to roussin@blaise.ibp.fr
  1607.     All the files comes from 'Genesis the 8bit generation BBS' (see
  1608.     below),
  1609.  
  1610.   - ftp.demon.co.uk:/pub/cpm, thanks to Paul Martin
  1611.     specific amstrad CP/M related files
  1612.     Paul Martin (pm@nowster.demon.co.uk) will send anyone, who can give
  1613.     him proof that they own an original Amstrad CP/M Plus disk, the binary
  1614.     ROM images of his "CP/M Plus ROMs" for free.
  1615.  
  1616.   - oak.oakland.edu : /Simtel/msdos/emulator/cpcemu14.zip
  1617.  
  1618.   - other Simtel mirrors:
  1619.     ftp.ibp.fr : /pub3/pc/SimTel/msdos/emulator/
  1620.     ftp.demon.co.uk : /simtel/msdos.
  1621.     ftp.uni-paderborn.de
  1622.  
  1623.  
  1624.   WWW
  1625.   ---
  1626.  
  1627.   - Amstrad Action homepage at http://www.futurenet.co.uk/
  1628.  
  1629.   - http://www.cm.cf.ac.uk/User/K.E.W.Thacker/Amstrad/index.html
  1630.  
  1631.  
  1632.   BBS
  1633.   ---
  1634.  
  1635.   - Aspects (2:250/107) : +44 1617920260, in United Kingdom, sysop Dave
  1636.     Gorski, V32b, CPCEMU v1.2, programs (mostly in basic),
  1637.  
  1638.   - Genesis the 8bit generation (2:320/220) : +33 1 39 50 54 11, in
  1639.     France, up to VFC, sysop : Emmanuel Roussin.
  1640.     last versions of emulators, qwerty and azerty 6128 ROMs, freeware,
  1641.     shareware, PD, disk zines, pokes, solutions, demos and a few
  1642.     commercial games (with the permission of their respective authors).
  1643.     For the moment, there are about 29,5 Mo of zipped programs. For fido
  1644.     users, you can file request ALLFILES.ZIP, and then what is
  1645.     interesting you.
  1646.  
  1647.   - Razormaid (2:2471/6009) : +49 711 4204329, in Germany, up to V32b
  1648.     and Zyxel, sysop : Thorsten Mitschele also known as Kangaroo in the
  1649.     CPC scene, it has the same files as Genesis, with some delay.
  1650.  
  1651.   - ZNODE 51 : + 49 89 961 45 75, in Germany, from 15:00 to 3:00 CET
  1652.     (MEZ), up to V32b, CPC files
  1653.  
  1654.   - Beavis'n'Butthead BBS 2453/407, Germany
  1655.  
  1656.  
  1657.  
  1658.  
  1659. 6.2  News, exchange experiences
  1660. ===============================
  1661.  
  1662.   Do you always want to have the latest version of CPCEMU?
  1663.   Do you want to be informed if a new one is released?
  1664.  
  1665.   Meanwhile we have set up a newsgroup especially for the CPC!
  1666.   It is called
  1667.  
  1668.      comp.sys.amstrad.8bit.
  1669.  
  1670.   Here you will find discussions about CPCs (and also CPCEMU), and
  1671.   you can talk about your experiences with CPCs.
  1672.  
  1673.   There is an FAQ (frequently asked questions) available to this
  1674.   newsgroup.
  1675.  
  1676.   If you cannot read the newsgroup for any reason, write me an email
  1677.   saying that you want to be on the mailing list. Then you will be informed
  1678.   about CPCEMU news.
  1679.  
  1680.   You will find my address in the next section.
  1681.   Certainly you can also use normal mail to ask me (or David, see below),
  1682.   but please do not forget the return postage.
  1683.  
  1684.   If you send me a contribution, I feel obliged to send the latest version
  1685.   to you at least one or two times.
  1686.  
  1687.  
  1688.  
  1689.  
  1690. 6.3  If you have questions or suggestions
  1691. =========================================
  1692.  
  1693.  
  1694.   Then you can write directly to me:
  1695.  
  1696.        Marco Vieth
  1697.        Auf dem Uekern 4
  1698.        D-33165 Lichtenau
  1699.        Germany
  1700.  
  1701.        Phone: (...)05292/1366 (only on week-ends)
  1702.  
  1703.        Internet: ali@uni-paderborn.de
  1704.  
  1705.        As you have probably already gathered while reading the Internet
  1706.        address, I am studying Computer Science at the University of
  1707.        Paderborn. I am in my 11 semester (WS 95/96).
  1708.  
  1709.  
  1710.  
  1711.   In case you speak or write English (I presume so 'cause you're reading
  1712.   this) you also can write to David Cantrell:
  1713.  
  1714.        David Cantrell
  1715.        116, London Road
  1716.        Bexhill-on-sea
  1717.        East Sussex
  1718.        TN39 4AA
  1719.        England
  1720.  
  1721.        Phone: +44-1424-221015
  1722.  
  1723.        Internet: david@integration.co.uk
  1724.  
  1725.  
  1726.   David offered to help a little to answer the "pile of letters".
  1727.   He has scanned firmware manual for the CPC, so everyone can get it
  1728.   in an electronical form.
  1729.  
  1730.  
  1731.  
  1732.  
  1733.   Although this program is Freeware, I would certainly accept any sort of
  1734.   support, financial or technical.
  1735.   (30-50 Deutschmarks would be appropriate.)
  1736.   (That is around 20-33 US$ or 13-21 British pounds.)
  1737.  
  1738.   Even if you send no money, I normally respond to all letters and try
  1739.   to keep in mind all suggestions (I am sure David will do the same).
  1740.   So do not hesitate to send your comments.
  1741.  
  1742.  
  1743.  
  1744. 6.4  Other Amstrad CPC emulators
  1745. ================================
  1746.  
  1747.   At the beginning of 1994 I thought that CPCEMU was the only emulator
  1748.   for the Amstrad CPC. Now I know of three other:
  1749.  
  1750.   - SIMCPC:
  1751.     Presumably the first CPC emulator written.
  1752.     CPC Emulator for PC/XT/AT   (c) 1989, 90 by GHE, Aachen.
  1753.     It is only black and white, but with additional ROMs;
  1754.     only a "beer humour".
  1755.  
  1756.   - CPC2PCxx:
  1757.      In development since October 1993 by Paco Lopez (Spain), and
  1758.      Is available from some sites now. It is written completely in
  1759.      protected mode and uses the same disk format as CPCEMU.
  1760.  
  1761.   - CPE:
  1762.     In development by Bernd Schmidt. By using a special 50 hertz
  1763.     screen mode, some colour blocks are exactly reproduced.
  1764.     A special 256-colour CPE2 shows exact colour blocks with more
  1765.     than 50 hertz.
  1766.     Also supported: Multi modes, overscan.
  1767.     Latest version: v5.0.
  1768.  
  1769.  
  1770.  
  1771. 6.5  Plans for future releases of CPCEMU
  1772. ========================================
  1773.  
  1774.  
  1775.   - overscan
  1776.   - improved multi modes
  1777.   - screen centering in higher video modes
  1778.   - fast hardware scrolling
  1779.   - US keyboards have no "<>", ALTgr
  1780.   - simulate the expansions-port of the CPC
  1781.   - load CPC disks directly
  1782.   - load CPC tapes directly (over printer port or Soundblaster card)
  1783.   - transfer whole disk images with the parallel adapter
  1784.   - volume control for the Soundblaster
  1785.   - improved sound (maybe with noise)
  1786.   - digiblaster emulation
  1787.   - customizable joystick keys
  1788.   - use mouse as joystick
  1789.   - auto detection of .SNA and .DSK
  1790.   - emulate the expansion port
  1791.  
  1792.   Maybe this is never done since I have to write my dissertation first
  1793.   and do some "real" work...
  1794.  
  1795.  
  1796.  
  1797. 6.6  Acknowledgments
  1798. ====================
  1799.  
  1800.   - Special thanks to Juergen Weber, not only for many hints and
  1801.     suggestions, but especially for the fast Z80 emulation from
  1802.     his CP/M emulator ZSIM.
  1803.  
  1804.                 Juergen G. Weber
  1805.                 Wiesentalstrasse 1
  1806.                 74523 Schwaebisch Hall
  1807.                 Federal Republic of Germany
  1808.  
  1809.                 email: weberj@dia.informatik.uni-stuttgart.de
  1810.  
  1811.  
  1812.   - Also thanks to Bernd Schmidt. Because Bernd wrote his own emulator,
  1813.     we have had the same problems many times. Only if you try to write
  1814.     such an emulator yourself can you imagine, which details cause problems.
  1815.     There is no CPC documentation available, which gives a whole
  1816.     specification. Most parts of the CPC behaviour are detected by
  1817.     experiments with a real CPC.
  1818.  
  1819.   - Thanks to Ulrich Doewich for including Gravis UltraSound sound output
  1820.     in the emulator and reading through the documentation. Ulrich wrote
  1821.     a similar tool like CPCTRANS. Look out for CPDREAD which can read also
  1822.     copy protected disks.
  1823.  
  1824.   - Thanks to Emmanuel Roussin for his untiring engagement for the CPC.
  1825.     He did the essential steps for setting up the newsgroup and lent me
  1826.     his Multiface II for months, so that I could include in the emulator
  1827.     somehow.
  1828.  
  1829.   - Thanks to Arnt Gulbrandsen for his JPP source, where I found
  1830.     ideas for the keyboard handler and the joystick routine.
  1831.     By the way, JPP is a very good Spectrum emulator.
  1832.  
  1833.   - Thanks to Martin Zacho for supplying a joystick routine.
  1834.  
  1835.   - Thanks to Fernando J. Echevarrieta Fernandez for pointing out first
  1836.     that version v0.8 did not emulate a CPC 664.
  1837.  
  1838.   - Thanks to Gilles Molinari for his transfer program for the parallel
  1839.     adapter.
  1840.  
  1841.   - Thanks to Paul Martin for correcting the English documentation for
  1842.     version 1.0.
  1843.  
  1844.   - Thanks to Mark Haigh-Hutchinson for his engagement in making programs
  1845.     from the company Vortex public domain.
  1846.  
  1847.   - Thanks to Martin Young for his outstanding ideas about emulating a Z80.
  1848.  
  1849.   - Thanks to Linh Hsiesh for many ideas for improvements, most of which
  1850.     should have been incorperated by now.
  1851.  
  1852.   - Thanks to Fred Harris for writing a letter to AMSTRAD about the ROMs.
  1853.  
  1854.   - Thanks to Amstrad, especially to Cliff Lawson for allowing me to
  1855.     distribute the BASIC ROM. Amstrad retains the copyright.
  1856.  
  1857.         Amstrad plc, Brentwood House,
  1858.         169 Kings Road, Brentwood,
  1859.         Essex CM14 4EF
  1860.  
  1861.   - Thanks to Richard Clayton from Locomotive for allowing me to distribute
  1862.     the Firmware ROM. Locomotive retains the copyright.
  1863.  
  1864.   - And thanks to the many users for sending me suggestions or having
  1865.     ideas. Without them CPCEMU would hardly have reached version 1.0
  1866.  
  1867.   - (Please excuse my English.)
  1868.  
  1869.  
  1870.  
  1871.  
  1872. 6.7  Registered trademarks
  1873. ==========================
  1874.  
  1875.   CP/M, CP/M 2.2 and DRDOS are trademarks of Digital Research.
  1876.   MS-DOS is a trademark of Microsoft.
  1877.   IBM PC, PC-XT, PC-AT and OS/2 are trademarks of International
  1878.     Business Machines.
  1879.   CPC, AMSDOS by Amstrad,
  1880.   BORLAND C, TASM (Turbo Assembler) by Borland,
  1881.   22DISK by SYDEX
  1882.   Soundblaster by Creative Labs
  1883.   ...
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889. ------------------------------------------------------------------------------
  1890.  
  1891.  
  1892.  
  1893. 7.  Internal Information about CPCEMU
  1894. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  1895.  
  1896.  
  1897. This chapter gives some background information and answers the question,
  1898. "WHY shall I do this or that now?"
  1899. The powerful debug menu is also described. You will also find the structures
  1900. of disk images and snapshot files.
  1901. This information is not intended for CPCEMU users without knowledge of
  1902. what is inside a CPC. Maybe it will be useful sometime.
  1903. I have put this information at the end, even after the trademarks, in an
  1904. attempt to show its "relative insignificance".
  1905. If you have no fun reading unintelligible sentences and unarranged
  1906. information, do not read further!
  1907. Skip directly to the Appendix.
  1908.  
  1909.  
  1910.  
  1911. WARNING: Go on reading at your own risk !
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917. 7.1  Table of contents for chapter 7
  1918. ====================================
  1919.  
  1920.   7.2  Internal overview of CPCEMU features
  1921.     7.2.1  The Z80 CPU (The Processor)
  1922.     7.2.2  The Gate Array (The "Co-Processor")
  1923.     7.2.3  The PAL (Programmable Logic Array)
  1924.     7.2.4  The CRTC 6845 (Cathode Ray Tube Controller)
  1925.     7.2.5  The PIO 8255 (Programmable Input Output)
  1926.     7.2.6  The PSG AY 3-8912 (Programmable Sound Generator)
  1927.     7.2.7  The FDC 765 (Floppy Disc Controller)
  1928.     7.2.8  The Centronics printer interface
  1929.  
  1930.   7.3  The Debug menu
  1931.     - Overview of the debug menu
  1932.     - Preliminaries
  1933.     - Overview of the commands
  1934.     - Manipulation of registers
  1935.  
  1936.   7.4  Memory management
  1937.     7.4.1  Another time: EMS configuration
  1938.     7.4.2  How the Banking is done?
  1939.  
  1940.   7.5  ROM modifications
  1941.     7.5.1  ROM bypass for the cassette
  1942.     7.5.2  AMSDOS ROM modifications
  1943.  
  1944.   7.6  Miscellaneous
  1945.     7.6.1  Another time: The configuration file
  1946.     7.6.2  The parallel adapter
  1947.        - Direction CPC->PC
  1948.        - Direction PC->CPC
  1949.     7.6.3  CPCTRANS
  1950.  
  1951.   7.7  Structure of selected CPCEMU files
  1952.     7.7.1  Disc images
  1953.        - The Disc Information block
  1954.        - The Track Information block
  1955.     7.7.2  Snapshot files
  1956.     7.7.3  AMSDOS header
  1957.     7.7.4  Poke Database
  1958.  
  1959.   7.8  Internal history
  1960.  
  1961.  
  1962.  
  1963.  
  1964. 7.2  Internal overview of CPCEMU features
  1965. =========================================
  1966.  
  1967.  
  1968.   How compatible is CPCEMU really?
  1969.  
  1970.  
  1971.  
  1972.   7.2.1  The Z80 CPU (The Processor)
  1973.   ----------------------------------
  1974.  
  1975.   + All Z80 instructions are emulated, including so-called illegal ones.
  1976.     You have the choice between a slow Z80 emulation written in C and a
  1977.     fast Z80 emulation written in assembler by Juergen Weber.
  1978.     With the COCPU technique, every Z80 instruction is
  1979.     emulated simultaneously by the slow and the fast version,
  1980.     so it gets very slow, but by comparing the registers after
  1981.     each instruction many errors are found. Obviously this was
  1982.     only used during program development.
  1983.     You can activate the slow emulation in the debug menu.
  1984.   + Additional instructions 'ED FC xx' only the emulator knows.
  1985.     Among them the user break 'ED FC FC  USER &BCFC'.
  1986.  
  1987.   - No exact timing of the instructions
  1988.  
  1989.  
  1990.  
  1991.   7.2.2  The Gate Array (The "Co-Processor")
  1992.   ------------------------------------------
  1993.  
  1994.   + All 32 colours of the CPC (27 different ones)
  1995.   + All three screen modes (X x Y x COLOURS):
  1996.         mode 0 = 160x200x16
  1997.         mode 1 = 320x200x4
  1998.         mode 2 = 640x200x2
  1999.   + ROM banking (16KB OS, 16KB BASIC, 16KB AMSDOS and additional ROMs)
  2000.  
  2001.   - Colour beams flicker
  2002.  
  2003.  
  2004.  
  2005.   7.2.3  The PAL (Programmable Logic Array)
  2006.   -----------------------------------------
  2007.  
  2008.   The PAL is logically at the same address as the gate array but
  2009.   in hardware separated from it.
  2010.  
  2011.   + RAM banking (128 KB, up to 576 KB) with EMS or conventional memory.
  2012.     With emulated EMS, the blocks are mapped by the hardware, so the speed
  2013.     is OK. CPCEMU gives you a Dk'tronics compatible RAM expansion
  2014.     with up to 576 KB.
  2015.  
  2016.   - Without EMS, RAM banking is very slow, since memory blocks must be moved
  2017.     around in the PC memory. Besides you have only 128 KB RAM.
  2018.  
  2019.  
  2020.  
  2021.  
  2022.   7.2.4  The CRTC 6845 (Cathode Ray Tube Controller)
  2023.   --------------------------------------------------
  2024.  
  2025.   + Screen base and offset for hardware scrolling
  2026.   + Several screen sizes from 0x0 to 80x25 with CRTC registers 1 and 6.
  2027.   + Different character sizes (1..7) with CRTC register 9
  2028.   + Multi modes (they use some other registers)
  2029.  
  2030.   - Overscan is not yet supported
  2031.  
  2032.  
  2033.  
  2034.   7.2.5  The PIO 8255 (Programmable Input Output)
  2035.   -----------------------------------------------
  2036.  
  2037.   + Keyboard (connected to the PSG)
  2038.   + VSYNC emulation: A bit which is set between two interrupts during a
  2039.     screen refresh. You can change the position.
  2040.   + The cassette is very fast, a ROM bypass allows access to any DOS file.
  2041.  
  2042.   - VSYNC bit is set too long
  2043.   - Cassette ports are not emulated, so most of cassette copy programs
  2044.     which access the ports directly do not run.
  2045.  
  2046.  
  2047.   7.2.6  The PSG AY 3-8912 (Programmable Sound Generator)
  2048.   -------------------------------------------------------
  2049.  
  2050.   + Either through the PC speaker (awful, since 3 channels are
  2051.     multiplexed into one and the volume cannot be changed)
  2052.     or a Soundblaster card. Only the Adlib compatible FM part of the
  2053.     soundcard is used.
  2054.  
  2055.   - No digital-sound or too slow.
  2056.     The noises form the PSG have no equivalent on the Soundblaster,
  2057.     so they are not emulated.
  2058.  
  2059.  
  2060.   7.2.7  The FDC 765 (Floppy Disc Controller)
  2061.   -------------------------------------------
  2062.  
  2063.   + All necessary FDC commands to control two drives A and B
  2064.     (including sector read/write, seek track, read sector-ID, ... ;
  2065.     format track is ignored)
  2066.     Very flexible disk formats (up to 18 sectors per track).
  2067.     Including double sided formats, e.g. VORTEX.
  2068.  
  2069.   - Complicated copy-protected formats are not supported.
  2070.  
  2071.  
  2072.  
  2073.   7.2.8  The Centronics printer interface
  2074.   ---------------------------------------
  2075.  
  2076.   + Printer output also with 8-bit printer patch, to a file defined
  2077.     by PRINTER.
  2078.  
  2079.  
  2080.  
  2081.  
  2082. 7.3  The Debug menu
  2083. ===================
  2084.  
  2085.   The complete register set of the CPU is displayed and can be modified.
  2086.   You can "dump" the memory, disassemble or modify it. You can load or
  2087.   save areas in memory. And the most interesting thing:
  2088.   You can single-step through programs!
  2089.   (Similar to a real debugger.)
  2090.  
  2091.   Overview of the debug menu
  2092.   --------------------------
  2093.  
  2094.   R)un T)race S)tep  A)ssem D)ump I)nput  L)oad saV)e  M)ode  F)ast Q)uit
  2095.   AF=0000 BC=0000 DE=0000 HL=0000 IX=0000 IY=0000 SP=0000 PC=0000 IR=0000
  2096.   AF'=0000 BC'=0000 DE'=0000 HL'=0000 IFF1=0 IFF2=0 IMD=0  NZ NC PO P
  2097.   0000 : 01 89 7F       LD BC,&7F89
  2098.   -f->
  2099.  
  2100.   The first line displays the available commands, use the capitalized
  2101.   letters.
  2102.   The next two lines show the actual values of the Z80 registers.
  2103.   The next one disassembles the actual instruction at PC position
  2104.   and the last is a prompt waiting for your input.
  2105.   ('f' indicates that you are using the fast CPU.)
  2106.  
  2107.  
  2108.   Preliminaries
  2109.   -------------
  2110.  
  2111.   Parameters in special brackets are optional [opt].
  2112.   Use only hexadecimal values, e.g. <address> = 0000-ffff
  2113.   "<ret>" indicates that you are in a special mode. You may press
  2114.   <return> to continue. <String><Return> leaves this mode
  2115.   (use e.g. b<return>).
  2116.   Commands are letters, mostly followed by an optional address.
  2117.   Between the letter and this address must be a blank or tab.
  2118.   Without an address, PC (program counter) is assumed as default.
  2119.  
  2120.  
  2121.   Overview of the commands
  2122.   ------------------------
  2123.  
  2124.   R)un:
  2125.   r [<address>] : starts emulation from PC or an optional address.
  2126.     Examples:
  2127.     -f-> r      starts emulation from PC
  2128.     -f-> r 100  sets PC to 0x100 and starts emulation
  2129.  
  2130.   T)race (trace into):
  2131.   t [<address>] : executes only the actual displayed instruction.
  2132.     Use <return> to continue in this mode, and so on.
  2133.     <string><return> goes back to normal mode.
  2134.     All single-step-commands are executed by the slow CPU (even if
  2135.     "-f->" is displayed), since there is no counter in the fast CPU
  2136.     any more.
  2137.  
  2138.   S)tep (step over):
  2139.   s [<address>] : executes the next instruction.
  2140.     Rather all instructions, until PC is equal to the following
  2141.     instruction. This can take a long time e.g. after a 'Ret'.
  2142.     In this case F10 helps (as usual).
  2143.     All single-step commands are executed by the slow CPU (even if
  2144.     "-f->" is displayed), since there is no counter in the fast CPU
  2145.     any more.
  2146.  
  2147.   A)ssemble (actually disassemble):
  2148.   a [<address>] : disassembles the next 16 instructions.
  2149.     Use <return> to continue in this mode, and so on.
  2150.     <string><return> goes back to normal mode.
  2151.  
  2152.   D)ump:
  2153.   d [<address>] : shows an hex/ASCII dump of the following 256 bytes from
  2154.     address (or PC).
  2155.     Use <return> to continue in this mode, and so on.
  2156.     <string><return> goes back to normal mode.
  2157.  
  2158.   I)nput (modifying memory):
  2159.   i [<address>] : shows the actual memory address with its current
  2160.     value, which you can take by <return> or change by <hex-value>
  2161.     <return>.
  2162.     Leave this mode by using an invalid number like '-1':
  2163.     -1<return> .
  2164.  
  2165.   L)oad (loading a program):
  2166.   l [<address>]  : prompts you for a filename <name> and loads it
  2167.     from the directory TAPE_PATH to <address>
  2168.     An AMSDOS-header is recognized.
  2169.     If you press <Return> after the filename prompt, the well-known
  2170.     file selection menu appears ...
  2171.     Examples:
  2172.     -f-> l<return> demo<return>         :
  2173.         loads file 'demo' to the actual PC
  2174.     -f-> l a000<Return> myprog<Return>  :
  2175.         loads file 'myprog' to address 0xA000
  2176.  
  2177.   saV)e (saving a program):
  2178.   v [<address>]  : prompts you for a filename <name> and the
  2179.     length of the memory block. This block is saved from <address>
  2180.     (or PC), as binary file in the directory TAPE_PATH, which
  2181.     includes an AMSDOS header.
  2182.     Example:
  2183.     -f-> v<return> demo<return> 4000<return>    :
  2184.         saves file "demo" from PC with length 0x4000.
  2185.  
  2186.   M)ode (changing the display mode):
  2187.   m : Changes display mode: register display, instruction
  2188.       disassembling on/off.
  2189.  
  2190.   F)ast (selecting the type of emulation):
  2191.   f : Flips between the fast Z80 emulation (developed in assembler
  2192.     by Juergen Weber, default) and the slow one (written in C).
  2193.     The prompt toggles between "-f->" for fast and "-s->" for slow.
  2194.     All r, s, t commands refer to the selected type of emulation.
  2195.  
  2196.   Q)uit (leaving the program):
  2197.   q : quits the emulator.
  2198.  
  2199.  
  2200.   Manipulation of registers
  2201.   -------------------------
  2202.  
  2203.   In addition to the one letter commands you can change register
  2204.   values with the syntax:               '<register>=<hex-value>'
  2205.   Examples:
  2206.   - af=345        : set register AF to 0x0345
  2207.   - pc=a000       : set program counter to 0xA000
  2208.  
  2209.   You can also write '<register><space><hex-value>'.
  2210.   You can modify all displayed registers, i.e.
  2211.   AF, BC, DE, HL, IX, IY, SP, PC, IR, AF', BC', DE', HL',
  2212.   and also IFF1, IFF2 and IMD.
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218. 7.4  The Memory Management
  2219. ==========================
  2220.  
  2221.  
  2222.   7.4.1  Another time: EMS configuration
  2223.   --------------------------------------
  2224.  
  2225.     You need an expanded memory manager supporting the LIM 4.0 standard
  2226.     (LIM EMS 4.0). This memory manager must supply extended EMS-pages in any
  2227.     region, as CPCEMU will look for 6 physical pages on continuous addresses.
  2228.     If EMS usage is possible, a memory count 'EMS xxx Bytes ok.' will appear
  2229.     during initialization.
  2230.  
  2231.     You were told to use the following settings under OS/2:
  2232.  
  2233.         EMS_FRAME_LOCATION = auto
  2234.         EMS_HIGH_OS_MAP_REGION = 32     (or more)
  2235.         EMS_LOW_OS_MAP_REGION = 0       (or more)
  2236.  
  2237.     What does that mean?
  2238.     Low region is for EMS pages in conventional memory. If CPCEMU
  2239.     is to use such pages, use at least 6*64KB = 84KB.
  2240.  
  2241.     High region is for EMS pages above 640K, additional to the
  2242.     standard frame of 64KB. Use at least 2*16KB = 32 KB.
  2243.  
  2244.  
  2245.     For DOS, you were told to include the following lines in your CONFIG.SYS:
  2246.  
  2247.         DEVICE=C:\DOS\HIMEM.SYS
  2248.         DEVICE=C:\DOS\EMM386.EXE 1024
  2249.         ...
  2250.  
  2251.     Modify the 1024, depending on the available memory of your computer.
  2252.  
  2253.     Annotations:
  2254.     EMM386 supplies several additional pages in conventional memory.
  2255.     The minimum address can be changed with the option /B=<segment>
  2256.     (default is 4000).
  2257.     With /P<number>=<segment> it is possible to change the segments of
  2258.     physical pages.
  2259.  
  2260.  
  2261.  
  2262.  
  2263.   7.4.2  How the Banking is done ?
  2264.   --------------------------------
  2265.  
  2266.     Banking is to enable some home computers to have RAM and ROM at the
  2267.     same address. So read is from ROM and write is to RAM. The Amstrad
  2268.     CPC has 64K RAM and a 16K ROM at 0-3fff and a second one at c000-ffff:
  2269.  
  2270.         0 RAM 0000-3fff
  2271.         1 RAM 4000-7fff
  2272.         2 RAM 8000-bfff
  2273.         4 RAM c000-ffff
  2274.         L ROM 0000-3fff
  2275.         U ROM c000-ffff
  2276.  
  2277.     The main idea is to have different segments and offsets for reading,
  2278.     and writing. For every read access, a read offset is added to the
  2279.     desired address, and the same is done with a write offset for writing.
  2280.  
  2281.                         state 0                 state 1
  2282.  
  2283.         block 5   M       L   c                W  0       <
  2284.         block 4   M    W  C   c                W  C   c    | swap at
  2285.         block 3   M    W  8 b c                W  8 a c    | state
  2286.         block 2   M    W  4 b c                W  4 a c    | change
  2287.         block 1   M    W  0 b                     L a c   <
  2288.         block 0   M       U b                     U a
  2289.  
  2290.  
  2291.     (M = conventional memory or physical EMS-pages)
  2292.  
  2293.     a = lower ROM enabled,  upper ROM enabled
  2294.     b = lower ROM disabled, upper ROM enabled
  2295.     c = lower ROM enabled,  upper ROM disabled
  2296.     W = lower ROM disabled, upper ROM disabled
  2297.  
  2298.     To flip between the two states, the '0' and 'L' block must be
  2299.     swapped. For RAM banking a new '0' must be swapped with the old
  2300.     one. ROM select is done by copying the new ROM to 'U'.
  2301.  
  2302.     With EMS memory, all banking is done by the EMS hardware (or its
  2303.     emulation). This improves the emulation speed in BASIC and CP/M
  2304.     Plus. Now you understand why 6 continuous physical EMS pages are
  2305.     needed; the standard frame with 4 pages is not enough.
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311. 7.5  ROM modifications
  2312. ======================
  2313.  
  2314.  
  2315.   7.5.1  ROM bypass for the cassette
  2316.   ----------------------------------
  2317.  
  2318.     After the '|TAPE' command, or if the AMSDOS ROM is disabled, the
  2319.     cassette is addressed. Cassette access is transformed into file
  2320.     access in a single directory. This redirection is done by a ROM bypass.
  2321.     With 'TAPE_BYPASS=1' you enable the ROM bypass of the tape vectors.
  2322.     If CPCEMU finds a known ROM from a CPC 464/664/6128, the ROM is
  2323.     modified accordingly. The bypass is necessary if you want to use the
  2324.     cassette.
  2325.  
  2326.     Some special instructions are implemented in the Z80 emulation. They
  2327.     call special functions only supplied by the emulator. They are entered
  2328.     directly in ROM, so it is still possible to patch the RAM vectors.
  2329.  
  2330.     The following instructions are available:
  2331.     ED FC xx  USER &BCxx    (only valid for some RAM vectors)
  2332.     Similar to a call instruction to an internal function.
  2333.     The following values for xx are legal:
  2334.         65      :       CASSETTE INIT (BC65)
  2335.         77      :       CASSETTE IN OPEN (BC77)
  2336.         7A      :       CASSETTE IN CLOSE
  2337.         7D      :       CASSETTE IN ABANDON
  2338.         80      :       CASSETTE IN CHAR
  2339.         83      :       CASSETTE IN DIRECT
  2340.         86      :       CASSETTE RETURN
  2341.         89      :       CASSETTE TEST EOF
  2342.         8C      :       CASSETTE OUT OPEN
  2343.         8F      :       CASSETTE OUT CLOSE
  2344.         92      :       CASSETTE OUT ABANDON
  2345.         95      :       CASSETTE OUT CHAR
  2346.         98      :       CASSETTE OUT DIRECT
  2347.         9B      :       CASSETTE CATALOG
  2348.  
  2349.     In addition to that, you can use the user break instruction
  2350.     ED FC FC  USER &BCFC. It stops the emulation at once.
  2351.  
  2352.  
  2353.  
  2354.   7.5.2  AMSDOS ROM modifications
  2355.   -------------------------------
  2356.  
  2357.     - With 'AMSDOS_DISABLE=1' you forbid the initialization of the AMSDOS.
  2358.       Then patching of tape vectors by the AMSDOS ROM is disabled. (So the
  2359.       tape vectors are still pointing to tape, although the AMSDOS ROM is
  2360.       initialized.) This is necessary if you want continue loading from
  2361.       tape after a disc-reset, but without giving the '|TAPE' command
  2362.       first.
  2363.       (It is done by 'poke &CCF2,&18: poke &CCF3,&05' in the AMSDOS ROM.)
  2364.       Sector instructions are not affected, they always address the disk.
  2365.  
  2366.     - 'AMSDOS_SPEEDUP=1' enables a AMSDOS ROM modification, which
  2367.       minimizes the motor waiting times to render a faster disc access.
  2368.       (The things are managed by DOS, so we do not need the delay loops.)
  2369.       The following bytes are modified in the AMSDOS ROM:
  2370.           poke &C5D4,&01  :'motor load time
  2371.           poke &C5D8,&01  :'format track time
  2372.           poke &C5D9,&01  :'short wait
  2373.           poke &C5DA,&01  :'short wait
  2374.           poke &C602,&01  :'only 1 retry on error
  2375.           poke &C784,&01  :'fast seek
  2376.           poke &C7E2,&01  :'fast seek
  2377.  
  2378.  
  2379.  
  2380.  
  2381. 7.6  Miscellaneous
  2382. ==================
  2383.  
  2384.  
  2385.  
  2386.   7.6.1  Another time: The configuration file
  2387.   -------------------------------------------
  2388.  
  2389.     Maybe you remember that comments start with a semicolon ';', and
  2390.     can start anywhere on a line. The rest of the line is ignored.
  2391.     Blanks, tabs, newlines and ';' are delimiters, and it does not
  2392.     matter how many you use.
  2393.     Many of the definitions have the syntactical form
  2394.     <key-word> '=' <value> {T}
  2395.     {T} is a sequence of at least one delimiter.
  2396.     Example:
  2397.       ROM_PATH = ".\ROM"
  2398.  
  2399.     <number> can be given decimal, hexadecimal (with 0x) or binary (%).
  2400.     <pathname> may have a length of up to 80 characters and
  2401.     <filename> up to 20 characters.
  2402.  
  2403.     Some supplementary information to selected key-words:
  2404.  
  2405.  
  2406.     BREAK_MASK = <number>               (3)
  2407.  
  2408.       For debugging purpose only.
  2409.       Some events interrupt the normal emulation. With this flag,
  2410.       you can disable such events. Use with caution!
  2411.       Leave all bits on except those for such events you do not want
  2412.       to occur.
  2413.       b2 = 0 -> disable display of port errors (use 3)
  2414.       The meaning of the bits can change in future!
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.   7.6.2  The parallel adapter
  2421.   ---------------------------
  2422.  
  2423.     First, the construction of the adapter, now with functional description:
  2424.  
  2425.  
  2426.     PC  D-SUB   Cent.   CPC             Function
  2427.     --------------------------------    ---------------------------
  2428.     GND    19 ---- 19   GND             GND
  2429.     BUSY   11 <--- 1    -STROBE         Synchro (Data available)
  2430.     -ACK   10 <--- 8    D6              |
  2431.     PE     12 <--- 7    D5              | Data
  2432.     SELECT 13 <--- 6    D4              |
  2433.     -ERROR 15 <--- 5    D3              |
  2434.     D0      2 ---> 11   BUSY            Synchro (Ready to receive)
  2435.  
  2436.  
  2437.     Direction CPC->PC
  2438.     -----------------
  2439.  
  2440.     Normally the adapter is designed for this direction only. Sending
  2441.     on a CPC is on principle the same as printing on a line printer.
  2442.     If the PC sets Not-BUSY, the CPC writes a nibble (4 bit of a byte)
  2443.     to the port, sets STROBE as sign that the data is there, and clears
  2444.     it afterwards. So the PC only needs to clear BUSY (with D0), wait
  2445.     for STROBE (his BUSY line) and take the nibble (from the input-lines
  2446.     printer->PC), and set BUSY.
  2447.     Question: Why not sending 8 bits parallel?
  2448.     Answer:
  2449.     1. The PC printer port must be reprogrammed for input and I am not
  2450.        sure if that is possible on all PCs    and
  2451.     2. The CPC has a 7 bit printer port only.
  2452.  
  2453.  
  2454.     Direction PC->CPC
  2455.     -----------------
  2456.  
  2457.     One day I thought about the possibility of sending data in the other
  2458.     direction. Unfortunately the CPC has only one single input line at
  2459.     the printer port, namely the BUSY signal. So it would not improve the
  2460.     situation if you try to design a better adapter for this direction.
  2461.     Thus take what you have already and make the best out of it by
  2462.     developing a clever protocol.
  2463.     A serial interface also has one data line for each direction.
  2464.     But, a serial interface uses hardware synchronization, usually with
  2465.     a quartz, and both peers have to use exactly the same baud rate
  2466.     (e.g. 1200 baud).
  2467.     It is hard to do that with software only.
  2468.     What should I do?
  2469.     The idea is to utilize the speed advantage of the PC over the CPC.
  2470.     Each byte is split into 8 bit and transmitted serial, the PC has
  2471.     to set the BUSY line accordingly.
  2472.     During this 8 bit the CPC gives its maximum speed and the PC has to
  2473.     conform with it. The CPC writes a "bit request" with one assembler
  2474.     instruction. Now the PC must react promptly by setting the BUSY line
  2475.     accordingly the next bit. Since with the following-but-one (?)
  2476.     instruction the CPC will read it.
  2477.     In order to not disable the interrupts during the whole transfer,
  2478.     for every byte a "connection" is established.
  2479.     The CPC says "Hey, send something to me!", and the PC answers
  2480.     "Ok, I'm waiting until you want it." by toggling the BUSY-line.
  2481.     The whole story is protected with timer, so no peer can hang when
  2482.     waiting on a signal never sent.
  2483.     Thus you can escape the programs with <ESC> or <CRTC>+<BREAK>
  2484.     any time.
  2485.  
  2486.  
  2487.  
  2488.  
  2489.   7.6.3  CPCTRANS
  2490.   ---------------
  2491.  
  2492.     Another option not mentioned is "/d 0" or "/d 1". With 1 a special
  2493.     double-step mode is selected, on 80 track drives every second track
  2494.     is skipped when working with 40 track disks.
  2495.     This option should be unnecessary, because CPCTRANS switches
  2496.     automatically to double-step when detecting a 5.25" 360 KB disk.
  2497.  
  2498.     Normally it is very simple to read or write sectors by using the BIOS.
  2499.     But the BIOS cannot handle B-sides of disks with head-mark=0.
  2500.     So I had to program the FDC functions myself, with the aid of
  2501.     the MINIX source as an outline. Unfortunately the MINIX source contains
  2502.     some errors, and the timing in critical sections was done by
  2503.     simple delay loops possibly outlined for a 8086 processor.
  2504.  
  2505.  
  2506.  
  2507.  
  2508. 7.7  Structure of selected CPCEMU files
  2509. =======================================
  2510.  
  2511.  
  2512.   7.7.1  Disc Images
  2513.   ------------------
  2514.  
  2515.     Disc image files consist of a 0x100-byte disc info block and for
  2516.     each track a 0x100-byte track info block, followed by the data for
  2517.     every sector in that track.
  2518.     The new extended disk format is intended for some copy protected disks.
  2519.     Parts which are new in the extended format are marked with *E*
  2520.     (from our Extended DISK Format Proposal, Rev.5).
  2521.  
  2522.  
  2523.     The Disc Information block
  2524.     --------------------------
  2525.     Byte (hex): Meaning:
  2526.     00 - 21      "MV - CPCEMU Disk-File\r\nDisk-Info\r\n"
  2527.                  ("MV - CPC" is characteristic)
  2528.             *E*  "EXTENDED CPC DSK File\r\n\Disk-Info\r\n"
  2529.             *E*  ("EXTENDED" is characteristic)
  2530.     22 - 2F      unused (0)
  2531.             *E*  DSK creator (name of the utility) (no ending \0 needed!)
  2532.     30           number of tracks (40, 42, maybe 80)
  2533.     31           number of heads (1 or 2)
  2534.     32 - 33      size of one track (including 0x100-byte track info)
  2535.                  With 9 sectors * 0x200 bytes + 0x100 byte track
  2536.                  info = 0x1300.
  2537.             *E*  unused (0)
  2538.     34 - FF      unused (0)
  2539.             *E*  high bytes of track sizes for all tracks
  2540.                  (computed in the same way as 32-33 for the normal format).
  2541.                  For single sided formats the table contains track sizes
  2542.                  of just one side, otherwise for two alternating sides.
  2543.                  A size of value 0 indicates an unformatted track.
  2544.                  Actual track data length = table value * 256
  2545.                  Keep in mind that the image contains additional 256 bytes
  2546.                  for each track info.
  2547.  
  2548.  
  2549.     The Track Information block (for every track)
  2550.     ---------------------------------------------
  2551.     Byte (hex):  Meaning:
  2552.     00 - 0C      Track-Info\r\n
  2553.     0D - 0F      unused (0)
  2554.     10           track number (0 to number of tracks-1)
  2555.     11           head number (0 or 1)
  2556.     12 - 13      unused (0)
  2557.     Format track parameters:
  2558.     14           BPS (bytes per sector) (2 for 0x200 bytes)
  2559.     15           SPT (sectors per track) (9, at the most 18)
  2560.     16           GAP#3 format (gap for formatting; 0x4E)
  2561.     17           Filling byte (filling byte for formatting; 0xE5)
  2562.     Sector info (for every sector at a time):
  2563.     18+i         track number    \
  2564.     19+i         head number      | sector ID information
  2565.     1A+i         Sector number    |
  2566.     1B+i         BPS            /
  2567.     1C+i         state 1 error code (0)
  2568.     1D+i         State 2 error code (0)
  2569.     1E+i,1F+i    unused (0)
  2570.              *E* sector data length in bytes (little endian notation)
  2571.                  This allows different sector sizes in a track.
  2572.                  It is computed as  (0x0080 << real_BPS).
  2573.  
  2574.  
  2575.     Annotations:
  2576.     The sector data must follow the track information block in the
  2577.     order of the sector IDs. No track or sector may be omitted.
  2578.     With double sided formats, the tracks are alternating,
  2579.     e.g. track 0 head 0, track 0 head 1, track 1 ...
  2580.     Use CPCTRANS to copy CPC discs into this format.
  2581.  
  2582.  
  2583.  
  2584.   7.7.2  Snapshot Files
  2585.   ---------------------
  2586.  
  2587.     Snapshot files consist of a 0x100-byte header and a memory dump.
  2588.  
  2589.     The Snapshot header:
  2590.     Byte (hex):  Meaning:
  2591.     00 - 07      'MV - SNA' (as characteristic)
  2592.     08 - 0F      unused (0)
  2593.     10           snapshot version (2, former 1)
  2594.     11 - 1A      Z80 register  AF, BC, DE, HL, R, I
  2595.     1B - 1C      Z80 flags  IFF0, IFF1 (0=disabled, 1=enabled)
  2596.     1D - 24      Z80 register IX, IY, SP, PC
  2597.     25           Z80 interrupt mode IMD (0 - 2)
  2598.     26 - 2D      Z80 register  AF', BC', DE', HL'
  2599.     2E           Gate Array: ink number register
  2600.     2F - 3F      Gate Array: ink value register (0, 1, ..., 15, 16)
  2601.     40           Gate Array: multi configuration register
  2602.     41           Gate Array: RAM configuration register
  2603.     42           CRTC: address register
  2604.     43 - 54      CRTC: data register (0, 1, ..., 17)
  2605.     55           Upper ROM number
  2606.     56 - 59      PIO: port A, port B, port C, control port
  2607.     5A           PSG: address register
  2608.     5B - 6A      PSG: data register (0, 1, ..., 15)
  2609.     6B - 6C      memory dump size (64K or 128K)
  2610.     (the following parameter exist only from snapshot version 2.0 onwards:)
  2611.     6D           CPC type where the snapshot was generated
  2612.                  (0=CPC 464, 1=CPC 664, 2=CPC 6128, 3 = unknown)
  2613.     6E           interrupt number (0..5), the latest interrupt
  2614.                  during a screen update cycle.
  2615.     6F - 74      6 multimode bytes, thus screen modes (0..2)
  2616.                  for the interrupts 0..5.
  2617.     75 - FF      unused (0), maybe later for emulator configuration
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.   7.7.3  AMSDOS Header
  2624.   --------------------
  2625.  
  2626.     Byte (hex):  Meaning:
  2627.     00           user number (0 , possible values 0-15)
  2628.     01 - 0F      filename+extension (possibly filled with 0)
  2629.     10           block number (0)
  2630.     11           last block flag (0)
  2631.     12           file type (0=basic, 1=protected basic, 2=binary,...)
  2632.     13 - 14      length of block (0)
  2633.     15 - 16      load address (0-FFFF)
  2634.     17           first block flag (0)
  2635.     18 - 19      logical length (0-FFFF)
  2636.     1A - 1B      entry address (0-FFFF)
  2637.     1C - 3F      free for the user (0)
  2638.     40 - 42      real length of file (1-FFFFFF)
  2639.     43 - 44      checksum of bytes 00-42
  2640.     45 - 7F      unused (random values from sector buffer)
  2641.  
  2642.     Annotation:
  2643.     A header is found at the beginning of every non-ASCII file. It is
  2644.     identified by calculating the checksum.
  2645.     Bytes 00-3F originate from the "cassette area", where files were
  2646.     divided up into blocks.
  2647.     The bytes 12, 15-16, 1A-1B, 40-42, 43-44 are necessary.
  2648.  
  2649.  
  2650.   7.7.4  Poke Database:
  2651.   ---------------------
  2652.  
  2653.   An entry (one line) consists of 7 parts, each surrounded by '"',
  2654.   separated by commas.
  2655.   1. part number (1 character, 0-F):
  2656.      The first entry has number 0 and can be selected.
  2657.      If a program needs more than one poke, following entries have the
  2658.      numbers 1, 2, ...
  2659.   2. Name of program (up to 20 characters)
  2660.   3. Description (up to 20 characters)
  2661.   4. Type (1 character):
  2662.      ('t'=Tape, 'd'=disk, 'a'=all), currently ignored.
  2663.   5. Address of poke (4 characters, hexadecimal):
  2664.      Specifies the memory location to be modified
  2665.   6. Byte for the poke (2 characters, hexadecimal or '??'):
  2666.      If '??', you have to input a value, e.g. number of lifes.
  2667.   7. Old byte (2 characters, hexadecimal or '??'):
  2668.      Allows to check, if the poke modifies the correct environment.
  2669.      If the byte at the address differs form old_byte, a warning is
  2670.      displayed. There is no check when using '??'.
  2671.  
  2672.   Example:
  2673.     "0","Devils Crown","inf oxygen","t","863b","00","??"
  2674.     "1","","","t","863c","00","??"
  2675.     "2","","","t","863d","00","??"
  2676.  
  2677.     There are three pokes for the program "Devils Crown", all working
  2678.     together. Old values ark unknown so old byte is '??'.
  2679.     You can omit name and description in following entries.
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685. 7.8  Internal History
  2686. =====================
  2687.  
  2688.  
  2689.   Z80EMU (only a Z80 with less CPC)
  2690.   ---------------------------------
  2691.  
  2692.   - v1.0 (1991)
  2693.     first version in Pascal (only Z80 emulation)
  2694.   - v1.2 (12.8.1992 - 16.8.1992)
  2695.     first version in C (translated with TPTC)
  2696.     Z80 problems: ADD HL..., DAA, LDIR set the P-flag incorrectly. BIT...
  2697.     set the Z-flag incorrectly, rotate instructions set the Z-flag and S-flag
  2698.     incorrectly; possible to use ROMs now.
  2699.   - v1.3 (18.8.1992)
  2700.     wrong port addressing: low byte incorrect. New memory management with
  2701.     128 KB RAM, 32 KB ROM
  2702.   - v2.0 (18.8.1992 - 22.8.1992)
  2703.     implemented COCPU technique to find errors (the COCPU uses separate
  2704.     memory and is only active in a special debugging mode). Z80 problems:
  2705.     AND... set H-flag incorrectly, CPI... set N-flag incorrectly. Formerly,
  2706.     the screen was only black and white, now it is blue and yellow as you
  2707.     know from a real CPC.
  2708.   - v2.1 (25.8.1992 - 27.8.1992)
  2709.     Emulation of all pens, colours in all modes. Writing only to the active
  2710.     screen which you can see. COCPU found an error: all instructions
  2711.     containing (IX+zz) with a negative distance were wrong ! Forgotten to
  2712.     take "signed char".
  2713.   - v2.2 (30.8.1992 - 3.9.1992)
  2714.     New keyboard routine, set palette without flickering (waiting for HSYNC).
  2715.     "Need-ROM" with COPYMATE introduced.
  2716.   - v2.3 (15.9.1992 - 19.9.1992)
  2717.     FDC emulation for sector load/save. COCPU found an error: LD XH,... was
  2718.     LD H,...
  2719.   - v2.3b (19.9.1992)
  2720.     Do screen update only if the screen is on RAM blocks 0..3 (and not 4..7);
  2721.     Made port FCxx an alias for FBxx (for CP/M Plus). At that time, I did not
  2722.     know that OUTI... predecrement the B-register.
  2723.   - v2.4 test (25.10.1992)
  2724.     Only R-register emulation if desired (per "DEFINE"); Now screen update
  2725.     every nth interrupt and not for every single byte written in memory.
  2726.     (Still very slow, because all is done in C). New memory management with
  2727.     blocks aligned to segments.
  2728.   - v2.5 test (31.10.1992)
  2729.     Changed memory management. Hardware scrolling and different screen sizes
  2730.     possible.
  2731.   - v2.6 test (5.11.1992)
  2732.     New keyboard handler from Arnt Gulbrandsen: all key combinations
  2733.     possible. Screen update in assembler.
  2734.   - v2.7 test
  2735.     Unsuccessfully tried to include the fast Z80 emulation from Juergen
  2736.     Weber.
  2737.   - v2.8
  2738.     Improved Screen update: Only changed parts are modified on the screen.
  2739.   - v2.9
  2740.     Using PC Timer to generate interrupts with 300 Hertz. Fast emulation runs
  2741.     only, if no ROM (banking) is needed.
  2742.  
  2743.   CPCEMU (now a CPC)
  2744.   ------------------
  2745.   - v0.2 (23.12.1992), following Z80EMU v2.9
  2746.     After nearly 4 hours analyzing with the Turbo Debugger I have found the
  2747.     error hanging the fast emulation: PUSH ES instead of PUSH DS.
  2748.   - v0.3 (28.12.1992 - 29.12.1992)
  2749.     Set N-flag for INI,OUTI. CPI in fast Z80 set wrong flags. RL (HL) used
  2750.     read segment (in DS) instead of write segment (in ES). LD A,R now
  2751.     produces random-numbers; All Tape routines implemented (but wrong
  2752.     CASSETTE IN CHAR).
  2753.   - v0.4 (1.1.1993)
  2754.     IN A,(n): A to b8..b15 (instead of B); RAM configuration 0xC3: corrected
  2755.     to 0,3,2,7 (for CP/M Plus). KC-Compact (a CPC compatible from former DDR)
  2756.     uses port EE00 - EE3D, but for what?
  2757.   - v0.5 (28.1.1993 - 8.2.1993)
  2758.     INIR,... R-register-incrementation depends on B, not on BC. CASSETTE IN
  2759.     CHAR corrected (wrong patch for CPC 6128).
  2760.   - v0.6 (23.3.1993 - 24.5.1993)
  2761.     Someone mentioned that the OUTI-instructions predecrement the B-register!
  2762.     Compiling the C parts in 386 code (with Borland C++ v3.1). Disk images
  2763.     have the suffix .DSK. CPCREAD.PAS corrected (head not initialized with 0)
  2764.     and translated to CPCREAD.C. Port addressing of the PIO improved (the CPU
  2765.     can read, even if the port is programmed for output, ...)
  2766.   - v0.7 (26.7.1993 - 29.8.1993) (unreleased)
  2767.     Totally new source, modularized, ...  Configuration file, more ROMs
  2768.     possible. Changed company name from 'Schneider' to 'Amstrad'. (You can
  2769.     choose between several names.)  RAM banking error removed. New
  2770.     documentation in German.
  2771.   - v0.8 (30.8.1993 - 9.9.1993)
  2772.     Slow emulation: parity instructions improved by using a table not only
  2773.     for parity. Z80: ED xx with illegal xx is ignored. New documentation in
  2774.     English.
  2775.   - v0.8a (10.9.1993 - 15.9.1993)
  2776.     Fatal error in fast emulation: If an DD CB xx instruction is executed and
  2777.     an interrupt occurs, the instruction is ignored!
  2778.   - v0.8b (16.9.1993 - 21.9.1993)
  2779.     Implemented a "real" VSYNC, if VSYNC_CT = 0. Corrected PIO port A
  2780.     problem: OUT &F400,xx with Port A in input mode was ignored. New joystick
  2781.     routine from Martin Zacho.
  2782.   - v0.8c (22.9.1993 - 13.12.1993)
  2783.     Checked documentation with "ispell". Emulation did not start, if
  2784.     "USE_JOYSTICK=1" and a joystick was not present (PUSH AX at wrong
  2785.     position). Slow Emulation: DAA corrected (brackets were missing since
  2786.     v0.8). Wrong patch for CPC 664 in interrupt routine. This patch replaced
  2787.     EI with NOP do avoid the problem with EI (enable interrupts one
  2788.     instruction later). Now correct for all CPCs.
  2789.   - v0.8d (14.12.1993 - 29.12.1993)
  2790.     FDC emulation rewritten for double sided formats. CPCTRANS replaces the
  2791.     old CPCREAD and allows you to read Vortex-disks after you have installed
  2792.     the patch 720KB.COM. Beside that, you can write disk images back to disk.
  2793.     New fileselect when pressing F3. Some port address aliases introduced,
  2794.     e.g. &7000 - &7f00 to address the gate array, &0c00,&1c00,&2c00,&3c00,
  2795.     &bc00 for the CRTC. Emulation of the R-register enabled.
  2796.   - v0.9 alpha (30.12.1993 - 20.1.1994)
  2797.     EMS memory possible with a special EMS/UMB-configuration. Binary digits
  2798.     in the configuration file. RAM-banking addressing corrected: emulator
  2799.     accepted &d0-&ff as &c0-&c7. Now up to 576 KB RAM with EMS.
  2800.   - v0.9b (21.1.1994 - 31.1.1994)
  2801.     Usage of EMS simplified by extended EMS (or LIM EMS 4.0) with more than
  2802.     4 physical EMS pages. File-select added to 'l' (debug menu), RUN" .
  2803.   - v0.9c (1.2.1994 - 29.4.1994)
  2804.     Some awful PC speaker sound (disable it with F4). File select also with
  2805.     'v'; this English documentation corrected; Soundblaster sound (can be
  2806.     improved); new CPCTRANS with command line parameters, direct FDC access;
  2807.     parallel adapter tested and the software improved. Fast Z80: INC (HL),
  2808.     DEC (HL), INC (IX+n), DEC (IX+n) for RAM below ROM corrected. PgUp,PgDn
  2809.     move oversized screens; parts of overscan screens are displayed.
  2810.     Now possible: 64K snapshots.
  2811.   - v0.9d (30.4.1994 - 12.5.1994)
  2812.     Interrupts during DI are not forgotten, and they are not enabled directly
  2813.     after an EI instruction any more. New color functions: now without snow
  2814.     under OS/2. Fast Z80: speed up code fetch.
  2815.  
  2816.   - v1.0 (13.5.1994 - 20.5.1994)
  2817.     Improved screen part: different character sizes from 1 to 8. File select
  2818.     added to SAVE" , added fast select by pressing a letter. Improved
  2819.     CPCTRANS with a verify option. A new setup menu, if you press F7. So you
  2820.     can disable colour flickering.
  2821.  
  2822.   - v1.0a (21.5.1994 - 9.6.1994)
  2823.     Improved setup menu with direct input or cursor keys, added German
  2824.     keyboard layout, added simple delay option. Correct display of smaller
  2825.     screen sizes (without parts of the bigger ones). Improved fast Z80 part:
  2826.     faster RRA,RLA, ... faster CB xx instructions. Added more illegal
  2827.     instructions (ED xx). LD D,XH and LD YL,YH were missing ! Corrected CPDR,
  2828.     CPIR with BC=0 (0 means 65536 on a Z80, but it is 0 for the 80x86 REPE
  2829.     prefix!). DAA flags corrected. New software for the parallel adapter:
  2830.     Now it is possible to send to the CPC. Thanks to Bernd Schmidt for
  2831.     pointing out that an interrupt increments the R-register by 1. With his
  2832.     help, the PIO port C register emulation has been improved.
  2833.  
  2834.   - v1.1a (10.6.1994 - )
  2835.     A new era of CPCEMU has arisen: Amstrad has allowed the use of the ROMs!
  2836.     Changing in the configuration file: ROM_BLOCKS -> ROM_BLOCK, DISC_BYPASS
  2837.     -> DISABLE_ADOS, no space separating '=' needed, Changings in sound part,
  2838.     graphics part: vertical size by VGA-CRTC. Joystick calibration is in the
  2839.     setup menu now, tape routines for saving are improved. FDC part improved:
  2840.     now you can use COPYMATE. Insert non-data format disks without read error
  2841.     (without a seek to track 0). Another delay in CPCTRANS, I hope, you will
  2842.     not need the turbo switch any more; formatting of disk images. Corrected
  2843.     PIO port C another time: it is cleared after out &7f00,n. Major changes
  2844.     in the configuration file: Now with conditional configuration (#IFCPC,
  2845.     #ENDIF). Some tokens changed (VSYNC_CT -> /, DISC_PATH -> /, SNAP_PATH ->
  2846.     SNAPSHOT, DRV_A -> DRIVE_A, DRV_B -> DRIVE_B). Load programs from inside
  2847.     ZIP archives. You will need PKUNZIP.
  2848.  
  2849.   - v1.1b (17.8.1994 - 2.9.1994)
  2850.     Multimodes introduced, that means different screen modes on the same
  2851.     screen. The screen update is partitioned in up to 6 areas, each one is
  2852.     updated when an interrupt occurs. (Can be improved.) Possible now: 128K
  2853.     Snapshots, extended for multimodes. CPCPARA improved: Now you can
  2854.     transfer binary files with header. CPC 6128 Plus detection included.
  2855.     More port aliases included.
  2856.  
  2857.   - v1.2 (3.9.1994 - )
  2858.     This version was released. Mainly there are some changes with
  2859.     the help menu.
  2860.  
  2861.   - v1.2a (27.9.1994 - )        (was available as UPD12A.ZIP)
  2862.     File Select: Only the available drives are displayed.
  2863.     And: With the driver ANSI.SYS the background of some text was black.
  2864.     TMP_PATH: You can specify a drive without path.
  2865.     DOS Shell (F7): CPCEMU is swapped to XMS, EMS or disk first, so you
  2866.     have much memory in the DOS shell. (This feature is taken from the
  2867.     Public Domain Program SWAP300.ZIP by Marty Del Vecchio.)
  2868.     Screen update could be corrupted, if the screen width was not
  2869.     divisible by 4.
  2870.     Another CPCEMU version to get even more speed: C2.EXE. It uses a
  2871.     different memory management with two EMS frames with 64KB each.
  2872.     One for reading and one for writing. But it runs only with EMS.
  2873.     The ROMs are also (c) by Locomotive Software, not only Amstrad.
  2874.  
  2875.   - v1.2b (  )
  2876.     There was no stereo sound on a Soundblaster Pro even if the
  2877.     configuration said so. If no Soundblaster was found there was no
  2878.     sound at all until you use USE_SB=0.
  2879.     Fast-Z80: Changed some word accesses to byte accesses. That's a bit
  2880.     slower but does not crash the computer every time you do a word
  2881.     access at address 0xffff.
  2882.     Fast-Z80: Problem with EI HALT DI corrected: The address to HALT was
  2883.     pushed instead that one of DI.
  2884.     corrected English documentation
  2885.     improved CPCPARA and PCPARA v1.1: adapter test, much more speed CPC->PC:
  2886.     approx. 1600 bytes per second reading from disk! (486/66), statistics.
  2887.     So you can transfer 16KB in 10 seconds! Thanks to Klaus Weber for
  2888.     pointing out, that it was much too slow.
  2889.     In PCPARA there was a DELAY(1) after every nibble to wait a millisecond.
  2890.     This is not necessary.
  2891.  
  2892.   - v1.2c (28.2.1995 - )        (was available as UPD12C.ZIP)
  2893.     Parts of CPCEMU rewritten in C++. This allows inline functions and
  2894.     improved interfaces to keep a better overview over the project.
  2895.  
  2896.   - v1.2d (16.3.1995 - )        (only for mailing list 'subscribers')
  2897.     Fast-Z80: Internal changes not visible to the user, except a little
  2898.     speed improvement. All data is kept in the data segment now instead
  2899.     of the code segment.
  2900.     Finally introduced the absolutely necessary mode for fast computers:
  2901.     'realtime CPC' (Selectable from the setup menu or REALTIME=1).
  2902.  
  2903.   - v1.3 (16.4.1995 - )
  2904.     Poke database for easy poking, French documentation, FDC format
  2905.     command (re-format disk images of the same size),
  2906.     new menu system with mouse support (MOUSE=1),
  2907.     insert disk images with read-only DOS attribute (insert them as read
  2908.     only), debug menu: 'find' added
  2909.  
  2910.   - v1.3a (30.4.1995 - )        (was available as UPD13A.ZIP)
  2911.     With version v1.3 Boulder Dash did not run, even if it did with v1.2.
  2912.     The interrupt mode 2 of the Z80 was not simulated correctly
  2913.     (PUSH/POP forgotten). The slow Z80 emulation had a similar bug.
  2914.     CPCTRANS: Option -f 6 enabled.
  2915.  
  2916.   - v1.3b (20.5.1995 - )        (is available as UPD13B.ZIP)
  2917.     Some users mentioned that there was no Soundblaster sound output since
  2918.     version 1.3.
  2919.  
  2920.   - v1.4 (v1.3c)
  2921.     GUS sound support by Ulrich Doewich; online help in English, German,
  2922.     French and Spanish; complete French documentation;
  2923.     support for 2 joysticks; VESA videomodes for higher resolutions;
  2924.     improves setup menu and configuration file; load and save
  2925.     configurations added to the setup menu; improved FDC routines for
  2926.     non-standard formats; Extended disk format;
  2927.     user-configurable colours and keys;
  2928.     improved CPCTRANS (v2.3); new SNA2GIF (v1.1);
  2929.     fast Z80 emulation: sometimes the screen was not completely cleared
  2930.     after a reset (problem with HALT);
  2931.  
  2932.  
  2933.  
  2934.   CPCEMU is written in C++ and assembler, using Borland C 3.1 with 386
  2935.   optimization and Turbo Assembler. For Debugging the Turbo Debugger
  2936.   was used.
  2937.   The colours were composed with the program VGAMETER by J. Stephen
  2938.   Shattuck, Jr., with the CPC connected to a TV by a Scart adapter.
  2939.  
  2940.  
  2941.  
  2942. ------------------------------------------------------------------------
  2943.  
  2944.  
  2945.  
  2946. (From this point you can continue reading without danger.)
  2947.  
  2948.  
  2949.  
  2950. Appendix
  2951. ≡≡≡≡≡≡≡≡
  2952.  
  2953.  
  2954.  
  2955. A.1  Glossary
  2956. ≡≡≡≡≡≡≡≡≡≡≡≡≡
  2957.  
  2958. Here some computer terms are explained. I do not claim to give complete
  2959. or precise definitions. The terms are described with the view to the CPC.
  2960. References are marked with "»".
  2961.  
  2962.  
  2963. 386/33 (AT 386/33)
  2964.   Short term for »PC AT with 80386 processor, clocked with 33 MHz.
  2965.   Because of the "high" clock rate it should be a 386DX with a real 32
  2966.   bit data bus, not the cheap 386SX with a 16 bit data bus.
  2967.  
  2968. AMSDOS (Amstrad DOS)
  2969.   »DOS developed by »Amstrad, for the »CPC computers.
  2970.  
  2971. Amstrad
  2972.   British computer manufacturer, who has designed the »CPCs.
  2973.  
  2974. Archive
  2975.   Storage of files.
  2976.   Or: One file, including several other.
  2977.   In »ZIP archives the files are compressed before including them.
  2978.  
  2979. ASCII (Abbreviation for: American Standard Code of Information Interchange)
  2980.   On a computer all characters, numerals are represented internal as numbers.
  2981.   Most computers use ASCII, with the letter "A" coded as 65. »PC and »CPC
  2982.   also use ASCII. In »Locomotive-BASIC you can save an ASCII file by typing
  2983.   'SAVE"<filename>",A'.
  2984.  
  2985. Basis Address
  2986.   This you have to specify in many »setups if you own a soundcard.
  2987.   CPCEMU looks for an »environment variable.
  2988.  
  2989. BASIC (Abbreviation for: beginners all purpose symbolic instruction code)
  2990.   Widely used, easy to learn programming language for home- and personal
  2991.   computers. Former every computer had had his own BASIC dialect.
  2992.   Modern BASIC allows structured programming, so you are not forced to
  2993.   program "spaghetti code" any more.
  2994.   Also the »CPC has its own BASIC, the Locomotive BASIC by a company of
  2995.   the same name.
  2996.  
  2997. Batch File
  2998.   Contains instructions you normally type in your computer. If you call
  2999.   such a file, the instructions are executed one by one, even if you input
  3000.   them.
  3001.  
  3002. BASIC File
  3003.   See »File.
  3004.  
  3005. BBS
  3006.  
  3007. Binary File
  3008.   See »File.
  3009.  
  3010. BLASTER environment variable
  3011.   See »environment variable.
  3012.  
  3013. C64:
  3014.   Home computer by the company Commodore with 64 KB »RAM, very popular.
  3015.   Because of the huge software supply it was "the game computer" for many
  3016.   years. Later it was pushed aside from the Commodore AMIGA, but despite
  3017.   its old technique it survived longer.
  3018.  
  3019. Clock frequency
  3020.   Clock the processor is connected to. It determines the speed of the
  3021.   processor in a significant way. Today's 486DX2/66 processors are clocked
  3022.   internally with 66 MHz.
  3023.   The Z80A in the »CPC is clocked with 4 MHz, running actually with 3.3 MHz
  3024.   because he has to wait periodically for the screen update.
  3025.  
  3026. Command line parameter
  3027.   Parameter you give in the command line after the file you want to call.
  3028.  
  3029. Configuration
  3030.   Here: Configure a program for his own needs.
  3031.   You can do that with the »Setup or a configuration file.
  3032.  
  3033. CPC (Abbreviation for: Colour Personal Computer)
  3034.   Developed by the company »Amstrad, was available in different types.
  3035.   Please read the introduction again.
  3036.  
  3037. CPC printer port
  3038.   Centronics interface of the »CPC to connect a printer.
  3039.   Unfortunately the CPC designers were too economic: It has only 7 bits.
  3040.   With a short wire it was possible to extend it to 8. For this the
  3041.   cassette port was "misused", not needed when printing.
  3042.  
  3043. CPC firmware manual
  3044.   A book about the »CPC, especially describing the operating system
  3045.   interface of the CPC.
  3046.  
  3047. CPC newsgroup
  3048.   A newsgroup only for the »CPC. It is called "comp.os.amstrad.8bit"
  3049.   and was created in august 1994.
  3050.  
  3051. CP/M Plus (Abbreviation for: control program for microcomputers)
  3052.   Operating system from the company Digital Research, mainly for 8 bit
  3053.   microcomputers. Widely used until IBM decided to use MS-DOS for its PCs.
  3054.   CP/M Plus (CP/M 3.0) was the successor of CP/M 2.2 and was included
  3055.   in the software package of the »CPC 6128.
  3056.  
  3057. CTRL/SHIFT/ESC (control/shift/escape)
  3058.   "Three finger combination" on a »CPC to cause a reset. It is similar to
  3059.   the reset combination 'CTRL/ALT/Del' on a PC. Some programs block
  3060.   such a reset so you have to turn off the computer or use the reset
  3061.   button. The CPCs had no button, but it was easy to build one.
  3062.   In CPCEMU the function key F8 is the reset button.
  3063.  
  3064. Cursor
  3065.   Character on the screen which shows you the current writing position.
  3066.   Somewhere on the keyboard there are cursor keys to move the cursor
  3067.   around.
  3068.  
  3069. D-Sub
  3070.   Connectors with a special form.
  3071.  
  3072. Dk'tronics
  3073.   British company offered hardware extensions for the »CPC, e.g.
  3074.   memory extensions.
  3075.  
  3076. DMA (Abbreviation for: Direct Memory Access)
  3077.   Direct access to the computer memory without using the processor.
  3078.   Used with disk drives, but to be cheap not implemented in CPCs.
  3079.   The Soundblaster card can also use a DMA channel, getting digital
  3080.   sound data "through" it.
  3081.  
  3082. DOS (Abbreviation for: disk operating system)
  3083.   Disk oriented operating system, e.g. AMSDOS, DRDOS, MS-DOS.
  3084.   Today it is a synonym for MS-DOS.
  3085.  
  3086. DOS Search Path
  3087.   DOS uses a path along subdirectories to find a file.
  3088.   It is set with the environment variable 'PATH'.
  3089.  
  3090. DRDOS
  3091.   MS-DOS compatible »DOS by the company Digital Research.
  3092.  
  3093. E-Mail (Abbreviation for: Electronic Mail)
  3094.   Using a computer as mail-box.
  3095.  
  3096. EMM (Abbreviation for: Expanded Memory Manager)
  3097.   Similar to »EMS.
  3098.  
  3099. EMS (Abbreviation for: Expanded Memory System)
  3100.   Memory extension for the »PC, to get around the 640KB memory limit.
  3101.   With the banking technique other memory pages are mapped in an EMS
  3102.   window. EMS was developed by Lotus, Intel and Microsoft, thus it is
  3103.   called LIM-EMS.
  3104.   There is hardware-, emulated and simulated EMS.
  3105.   Special memory cards supply hardware EMS, mainly used on old PC XTs.
  3106.   On a PC AT with at least a 80386 processor it is possible to have
  3107.   emulated EMS by using the paging mechanism for banking.
  3108.   This sort is supplied by EMM386.EXE and should used to speed up CPCEMU.
  3109.   Simulated EMS is too slow, it has to copy the memory pages.
  3110.  
  3111. Emulate
  3112.   Imitate a system (hard- or software) by another one.
  3113.   The imitating system computes the same results on the same data as
  3114.   the imitated system.
  3115.   CPCEMU emulates a »CPC on a »PC.
  3116.  
  3117. Emulator
  3118.   The system »emulating another one.
  3119.  
  3120. File
  3121.   Collection of data belonging together. On the »CPC there are files of
  3122.   different types, e.g BASIC files with BASIC programs usually having the
  3123.   extension '.BAS', ASCII files with any text, and binary files with any
  3124.   bytes, usually having the extension '.BIN'.
  3125.   Binary files can contain machine programs or other data.
  3126.  
  3127. Format definitions
  3128.   Definitions of disk formats.
  3129.  
  3130. FTP (Abbreviation for: File Transfer Protocol)
  3131.   A protocol to transfer files in computer networks.
  3132.   Also, the program running this protocol is called "FTP".
  3133.  
  3134. Hardware
  3135.   Parts of a computer you can "touch", e.g. periphery like printer,
  3136.   monitor; internal it is the processor and other »hardware chips.
  3137.  
  3138. Hardware chips
  3139.   Components inside the computer, e.g. processor, memory chips, floppy
  3140.   disk controller, ...
  3141.   Inside the CPC there are the Z80 processor, the Gate Array, the CRTC
  3142.   6845 for addressing the screen memory, the PIO 8255 for input/output,
  3143.   the sound chip PSG AY 3-8912, the floppy disk controller FDC 765, ...
  3144.  
  3145. Hardware scrolling
  3146.   Moving the screen without having the processor to copy from one part
  3147.   to another. The processor has to modify only the screen base address,
  3148.   the rest is done by a hardware chip.
  3149.  
  3150. Initialize
  3151.   Fill the memory with special values, so variables are defined.
  3152.  
  3153. Interface
  3154.   Connection of a computer to its periphery or from one program to another.
  3155.   Thus there are hard- and software interfaces.
  3156.   The so-called Centronics interface is a parallel interface, transmitting
  3157.   the bits of a byte parallel. With serial interfaces it is necessary to
  3158.   transfer the bits one after another.
  3159.  
  3160. Internet
  3161.   An Internet is composed of several sub-networks of computers.
  3162.   Here: *The* Internet, a worldwide computer network for communication.
  3163.  
  3164. Interrupt
  3165.   If the processor gets a signal with higher priority, it interrupts
  3166.   the running program and calls a special interrupt handler. When
  3167.   finished it continues with the interrupted program. On a PC there
  3168.   are different interrupt signals, e.g. when you press a key, when a
  3169.   timer runs off, when data from the serial interface has arrived
  3170.   (e.g. when you move the mouse), when the soundcard just played its
  3171.   last sample and needs more data, ...
  3172.   The Z80 in the CPC is interrupted 300 times a second.
  3173.  
  3174. Interrupt number IRQ (IRQ=Abbreviation for: Interrupt Request)
  3175.   On a PC, different »interrupts have different numbers.
  3176.   For example, the keyboard interrupt has number 9, the timer interrupt
  3177.   has number 8. If you press a key, the keyboard sends an interrupt
  3178.   request to the processor, so it is informed.
  3179.  
  3180. Jumper box
  3181.   An adapter box to realize any connection between two connectors by
  3182.   using short wires which must be soldered.
  3183.   See also »Wiring Box.
  3184.  
  3185. Keyboard handler
  3186.   A program called when the keyboard generates an »interrupt. The handler
  3187.   gets the number of the key which is pressed or released.
  3188.  
  3189. LIM standard (Abbreviation for: Lotus Intel Microsoft)
  3190.   Memory expansion (»EMS), developed by Lotus, Intel and Microsoft.
  3191.  
  3192. Locomotive
  3193.   British company which wrote the »BASIC of the »CPCs.
  3194.  
  3195. Mailing list
  3196.   A service from me, for which I add your email address to a list.
  3197.   So you will be informed about news concerning CPCEMU.
  3198.  
  3199. Microchannel
  3200.   Special bus architecture.
  3201.  
  3202. MS-DOS (Abbreviation for: Microsoft Disk Operating System)
  3203.   Operating system, developed by the company Microsoft for 16 bit
  3204.   processors (8086). The most popular operating system for the PC.
  3205.   Still in use on the 32 bit processors 80386 and 80486.
  3206.  
  3207. Multi Modes
  3208.   Programming technique to have different screen modes simultaneously
  3209.   on the screen. The screen mode is changed during a screen refresh more
  3210.   than one time. On the CPC you get zones with high resolution, few
  3211.   colours and low resolution, many colours.
  3212.  
  3213. Multiface II (Abbreviation for: Multipurpose Interface)
  3214.   A hardware extension for the CPC. Allows to interrupt any program at any
  3215.   time to analyze or save it.
  3216.   Developed by the British company Romantic Robot.
  3217.  
  3218. Number representations
  3219.   Depending on the selected base, there are different representations
  3220.   for the same number.
  3221.   Well known is the decimal representation with basis 10 and digits 0 to 9.
  3222.   Computers use the binary representation (base 2) with digits 0 and 1.
  3223.   Programmers like the hexadecimal representation with base 16, because
  3224.   16 is a power of 2 (2 powered with 4). Then the representations can
  3225.   be easily computed into each other. Besides a byte needs only 2 digits
  3226.   (0 to 9, A to F) in the hexadecimal notation.
  3227.  
  3228. OS (Abbreviation for: Operating System)
  3229.   A program needed to use the computer. It provides basic functions to
  3230.   application software. New operating systems do complicated tasks like
  3231.   program scheduling in multitasking systems, ...
  3232.  
  3233. OS/2 DOS box
  3234.   A window under the 32 bit operating system OS/2 by IBM, where you
  3235.   can run DOS programs. The so-called DOS compatibility box.
  3236.  
  3237. Overscan
  3238.   The border surrounding the writable area on the screen.
  3239.   On a PC it is very small but you can change its colour, e.g. in CPCEMU
  3240.   with 'BORDER 10'. On the CPC the overscan is much wider, so
  3241.   programmers have looked for possibilities to write to it. With a
  3242.   programming trick it is possible to write to the whole screen.
  3243.   This programming technique is called overscan.
  3244.  
  3245. Parameter
  3246.   Variable with a fixed meaning, the behaviour of the program relies on it.
  3247.  
  3248. PC (Abbreviation for: Personal Computer)
  3249.   Computer with a microprocessor as processor (or CPU=central processing
  3250.   unit). Today a synonym for the IBM PC with 8086 or 8088 processor.
  3251.   PC AT (advanced technology) are computers with a 80286, 80386 or 80486
  3252.   processor.
  3253.  
  3254. PEEKs and POKEs:
  3255.   »BASIC instructions to modify the memory directly.
  3256.   'PEEK(<address>)' is used to read a byte from memory,
  3257.   'POKE <address>,<number>' modifies the memory. Programs with many PEEKs
  3258.   and POKEs are hard to understand, but sometimes it is necessary to
  3259.   break through the limits of BASIC, especially if the BASIC only has few
  3260.   instructions.
  3261.  
  3262. PKUNZIP
  3263.   Program by PK-Software to decompress »ZIP files.
  3264.  
  3265. RAM (Abbreviation for: Random Access Memory).
  3266.   Memory chip. Memory of the computer.
  3267.   The CPCs have 64KB RAM (kilo bytes) or 128KB. With hardware extensions
  3268.   they could have up to 576KB RAM.
  3269.  
  3270. ROM (Abbreviation for: read-only-memory).
  3271.   Memory chip. Memory that can only be read but not changed.
  3272.   It is available directly after switching on the computer.
  3273.   The CPCs have 16KB ROM »OS, 16KB ROM »BASIC and 16KB ROM for the AMSDOS.
  3274.  
  3275. ROM Image
  3276.   File with the contents of a »ROM. If you read out a ROM and write the
  3277.   bytes into a file you will get a ROM image.
  3278.  
  3279. RS-232
  3280.   Serial Interface to connect monitors or printers to the computer.
  3281.   (RS 232 C).
  3282.  
  3283. Schneider
  3284.   German company, which sold the CPCs in Germany.
  3285.  
  3286. Screen mode
  3287.  
  3288. Setup
  3289.   Changing »parameters of a program, so it behaves differently.
  3290.   You can tell the setup, that you have a soundcard, that you want to use
  3291.   a joystick, ...
  3292.  
  3293. SIMTEL
  3294.   A big software archive in the USA.
  3295.   The SimTel Software Repository is maintained by Coast to Coast
  3296.   Telecommunications, Inc. (CCT) on its host computer on the Internet
  3297.   located at "SimTel.Coast.NET". This archieve is mirrored (copied)
  3298.   to other sides.  One mirror site is Oakland University located at
  3299.   "OAK.Oakland.Edu".
  3300.  
  3301. Snapshots
  3302.   A memory dump completed by internal states of the »hardware chips.
  3303.   It contains a complete momentary state description of the computer.
  3304.   If the snapshot is reloaded, the computer is set back to the state
  3305.   described in the snapshot.
  3306.   Thus it is similar to a real snapshot, only inside the computer.
  3307.  
  3308. Software
  3309.   Programs of a computer system.
  3310.  
  3311. Soundblaster
  3312.   Soundcard of the company Creative Labs.
  3313.  
  3314. Spectrum
  3315.   The Sinclair Spectrum is a home computer developed by the company Sinclair.
  3316.  
  3317. Turbo Pascal compiler
  3318.   Pascal is a higher programming language which allows structured
  3319.   programming, today used in many schools.
  3320.   If one talks about Pascal, he means mostly Turbo Pascal, even if this
  3321.   is only an extended Pascal by the company Borland. The Turbo Pascal
  3322.   compiler is particular fast because it compiles the program in one pass.
  3323.  
  3324. Utility
  3325.   Useful program.
  3326.  
  3327. VGA (Abbreviation for: Video Graphics Array)
  3328.   Graphics standard on the PC. Successor of CGA (Colour Graphics
  3329.   Adapter), MCGA (Multi Colour Graphics Adapter) and EGA (Enhanced
  3330.   Graphics Adapter). Extended to SVGA (Super VGA) with higher resolution.
  3331.  
  3332. VGA-BIOS (Abbreviation for: VGA Basic Input Output Operating System)
  3333.   The operation system for the »VGA graphics card.
  3334.  
  3335. Windows
  3336.   Something you can put on »DOS.
  3337.  
  3338. Wiring box
  3339.   A adapter to realize any connection between two connectors by using
  3340.   short wires. In comparison to the »jumper box, the wires need not be
  3341.   soldered.
  3342.  
  3343. Z80
  3344.   An 8 bit processor developed by the company Zilog. It is upwards
  3345.   compatible to Intel's 8080 and was very popular.
  3346.   In the »CPC there is the Z80A which is clocked with 4 MHz.
  3347.  
  3348. Z80 instructions
  3349.   Machine instructions which the »Z80 understands.
  3350.   They are only number columns, so to remember them more easily mnemonics
  3351.   were introduced, which are translated by an assembler into binary code.
  3352.   The instruction "LD A,B" loads register A with the contents of register B
  3353.   and is the same as the binary code 0x78.
  3354.  
  3355.  
  3356. ZIP
  3357.   A special process to compress files.
  3358.   The »archives have the extension "ZIP".
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364. A.2  Bibliography
  3365. ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  3366.  
  3367.  
  3368. The CPC manual is indispensable for CPC beginners:
  3369. - Spital Ivor und Perry, Roland und Poel, William und Lawson,Cliff:
  3370.     CPC 6128 Benutzerhandbuch, Schneider Computer Division 1985,
  3371.     Originalausgabe (c) 1985 (my one contains 1895)
  3372.     by AMSOFT, AMSTRAD Consumer Electronics plc and Locomotive
  3373.     Software Ltd.
  3374.  
  3375. An excellent commented ROM listing, with starting chapters dealing
  3376. especially with the software side of the CPC:
  3377. - Janneck, Joern W. und Mossakowski,Till: ROM-Listing CPC 464/664/6128,
  3378.     Markt & Technik Verlag 1986
  3379.  
  3380. On the contrary: unfriendly composed, rarely commented, dealing more with
  3381. the hardware side:
  3382. - Brueckmann, Englisch, Gertis: CPC 464 Intern mit kommentiertem
  3383.     ROM-Listing, Data Becker 1985
  3384.  
  3385. Good to learn C, with many exercises:
  3386. - Kellay, Al and Pohl, Ira: A Book on C, Second Edition, 1990 by
  3387.     Benjamin/Cummings Publishing Company, Inc.
  3388.  
  3389. The C++ standard book:
  3390. - Stroustrup, Bjarne: The C++ Programming Language, Second Edition,
  3391.   Addison-Wesley, 1992
  3392.  
  3393. Another nice C++ book:
  3394. - Eckel, Bruce: C++ Inside & Out, 1993 by Osborne McGraw-Hill
  3395.  
  3396. Hints, how to write an understandable and good manual, gives:
  3397. - Boedicker, Dagmar: Handbuch-Knigge, Software Handbuecher schreiben
  3398.     und beurteilen. Wissenschaftsverlag 1990
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404. A.3  Index
  3405. ≡≡≡≡≡≡≡≡≡≡
  3406.  
  3407. The numbers behind the entries show you the chapter where they are described.
  3408.  
  3409. (not complete)
  3410.  
  3411. #ENDIF 4.2
  3412. #IFCPC 4.2
  3413. 22DISK 5.1.2
  3414. Adapter, parallel 5.2
  3415. AMSDOS_DI 4.2
  3416. AMSDOS_SPDUP 4.2
  3417. BLASTER Environment 2.3.2
  3418. BREAK_MASK 4.2
  3419. Cassette 3.2.2
  3420. COLOUR 4.2
  3421. Configuration file 4.2
  3422. CPC 1.3
  3423. CPC Newsgroup 6.2
  3424. CPCEMU.CFG 4.2
  3425. CPCPARA.BAS 5.2
  3426. CPCREC.BAS 5.2
  3427. CPCTRANS.EXE 5.1.1
  3428. Debug Menu 7.3
  3429. DELAY  4.2
  3430. Disk 3.2.1
  3431. Disk Image 3.2.1
  3432. DRIVE_A 4.2
  3433. DRIVE_B 4.2
  3434. EMS_EI 4.2
  3435. EMS Memory 2.3.1
  3436. Function key 3.1
  3437. INT_FREQ 4.2
  3438. INT_RESUME 4.2
  3439. JOY_CALIBRATE 4.2
  3440. KBD_LANGUAGE 4.2
  3441. Keyboard 3.1
  3442. Menus 3.2.1
  3443. Multi Mode 4.1
  3444. MULTIMODE 4.2
  3445. PCPARA.EXE 5.2
  3446. PIO_PORT_B 4.2
  3447. PRINTER 4.2
  3448. RAM_SIZE 4.2
  3449. ROM_BLOCK 4.2
  3450. ROM_PATH 4.2
  3451. SBLASTER 4.2
  3452. SB_DELAY 4.2
  3453. Setup menu 4.1
  3454. SHOW_CONFIG 4.2
  3455. SNAPSHOT 4.2
  3456. Snapshot 3.2.3
  3457. SOUND 4.2
  3458. Soundblaster 2.3.2
  3459. TAPE_BYPASS 4.2
  3460. TAPE_PATH 4.2
  3461. TMP_PATH 4.2
  3462. VSYNC Bit 4.1
  3463.  
  3464.  
  3465. ------------------------------------------------------------------------------
  3466. logout
  3467. ------
  3468.