
    Welcome to PSPCAP32

Original Author of Caprice32

  Ulrich Doewich

Author of the PSP port version 

  Ludovic.Jacomme also known as Zx-81 (zx81.zx81@gmail.com)

  *** Special Thanks ***

  -> to Loic Daneels for his keyboard files, feedback and suggestions.
  -> to David Llort for all his comments, feedback and requests.
  -> to Shadow for his beautiful icons and background !
  -> to Goebish for his help on ram size / Symb-OS issue


1. INTRODUCTION
   ------------

  Caprice32 is one of the best emulator of the Amstrad CPC home computer series
  running on Windows and Unix.  The emulator faithfully imitates the CPC464,
  CPC664, and CPC6128 models (see http://sourceforge.net/projects/caprice32)

  PSPCAP32 is a port on PSP of a mixed version of Caprice32 4.1.0 & 4.2.0.

  Special thanks to Danzel and Jeff Chen for their virtual keyboard,
  and to all PSPSDK developpers.

  This package is under GPL Copyright, read COPYING file for
  more information about it.

  NOTE: The code of the library (cpccat) used to display the content of a 
  DSK file is not GNU, so it is not part of this package.


2. INSTALLATION
   ------------

  Unzip the zip file, and copy the content of the directory fw3x or fw15
  (depending of the version of your firmware) on the psp/game directory.

  Put your snapshot files generated using the Windows version of Caprice32
  on "snap" sub-directory, or disk image on "disk" sub-directory.

  It has been developped on linux for Firmware 3.x-OE and should work 
  properly on PSP Slim.

  For any comments or questions on this version, please visit 
  http://zx81.zx81.free.fr or http://zx81.dcemu.co.uk


3. CONTROL
   ------------

3.1 - Virtual keyboard

  In the CPC emulator window, there are three different mapping 
  (standard, left trigger, and right Trigger mappings). 
  You can toggle between while playing inside the emulator using 
  the two PSP trigger keys.

    -------------------------------------
    PSP        CPC             (standard)
  
    Square     Backspace
    Triangle   ENTER
    Cross      Joystick Fire 1
    Circle     Joystick Fire 2
    Up         Up
    Down       Down
    Left       Left 
    Right      Right
  
    -------------------------------------
    PSP        CPC      (left and right trigger)
  
    Square     Backspace
    Triangle   ENTER
    Circle     Escape
    Cross      Space
    Up         Up
    Down       Down
    Left       Left 
    Right      Right

    Analog     Joystick
    
    Press Start  + L + R   to exit and return to eloader.
    Press Select           to enter in emulator main menu.
    Press Start            open/close the On-Screen keyboard

  In the main menu

    RTrigger   Reset the CPC

    Triangle   Go Up directory
    Cross      Valid
    Circle     Valid
    Square     Go Back to the emulator window

  The On-Screen Keyboard of "Danzel" and "Jeff Chen"

    Use Analog stick to choose one of the 9 squares, and
    use Triangle, Square, Cross and Circle to choose one
    of the 4 letters of the highlighted square.

    Use LTrigger and RTrigger to see other 9 squares 
    figures.
    
3.2 - IR keyboard

  You can also use IR keyboard. Edit the pspirkeyb.ini file
  to specify your IR keyboard model, and modify eventually
  layout keyboard files in the keymap directory.

  The following mapping is done :

  IR-keyboard   PSP

  Cursor        Digital Pad

  Tab           Start
  Ctrl-W        Start

  Escape        Select
  Ctrl-Q        Select

  Ctrl-E        Triangle
  Ctrl-X        Cross
  Ctrl-S        Square
  Ctrl-F        Circle
  Ctrl-Z        L-trigger
  Ctrl-C        R-trigger

  In the emulator window you can use the IR keyboard to
  enter letters, special characters and digits.


4. LOADING CPC SNAPSHOT FILES
   ------------

  Using the Linux or Windows version of Caprice32 on your PC, you can save 
  any snapshot files of your CPC games or applications.

  You can then save those snapshot files (with .zip, .sna or .snz file extension)
  on your PSP memory stick in the 'snap' directory. Then, while inside CPC
  emulator, just press SELECT to enter in the emulator main menu, and 
  then using the file selector choose one snapshot file to load in the
  RAM of your emulator.

  (NOTE) Save state files are now saved using gzip compression, with SNZ as
  file extention). It's much faster to save or load states. You can use 
  gzip or 7-zip to convert old SNA to SNZ. 
  SNA file format is still supported for loading, so you convert your 
  previous saved files (or original Caprice32 files), inside the emulator.


5. LOADING CPC DISK FILES
   ------------

  If you want to load disk image in the virtual drive A of your emulator,
  you have to put your disk file (with .zip or .dsk file extension) on your PSP
  memory stick in the 'disk' directory. You proceed as previously described
  for snapshot files, and your disk is then inserted in the drive 'A' of your
  emulator.  

  The first method to launch a game after loading a disk file, is to set the
  "Disk startup" option to "full" and to set the "Reset on startup"
  option to true.

  When you insert a disk using the "Load disk" menu then game will start
  automatically.

  If you want to can set the "Disk startup" option to "manual", and browser
  yourself the content of the disk using the "Explore disk" menu.

  If you want to do all this manually, set the "Disk startup" option to
  "manual" and proceed as explained in the following paragraphs.

  To display the content of your drive, you have to use the virtual keyboard
  (press START key) and type the CPC command 'CAT' followed by ENTER (Triangle).
  For example if you have loaded the disk file of the game "Green Beret" :

       CAT

  You should see something like this :

       Drive A: user    0
       
       GBERET    .     * 15K

       140K free

  (NOTE) You can also use directly the shortcut in the emulator menu (Command CAT option)
   
  Then if you want to run a program GBERET that is on your drive 'A', you have to
  use the CPC command 'RUN' as follow :

       RUN"GBERET

  (NOTE-1) If the filename of the .dsk (here gberet.dsk) is also the name of the 
  program you want to run (here gberet) then you can use directly the Command RUN" 
  in the emulator menu. 


  (NOTE-2) If the command to run is different from the filename then you can specify 
  the proper command to RUN in the file run.txt, for example :

    mygame=DISC

  Then, while using the Command RUM/CPM menu, the emulator will type RUN"DISC
  instead of RUN"mygame. Have a look the file run.txt for details about the syntax.

  (NOTE-3) You can specify CPM games in the run.txt file using the following syntax:

     mygame=|CPM

  Then, when using the Command RUM/CPM menu, the emulator will use the |CPM
  command (instead of RUN"mygame).
  

6. LOADING KEY MAPPING FILES
   ------------

  For given games, the default keyboard mapping between PSP Keys and CPC keys,
  is not suitable, and the game can't be played on PSPCAP32.

  To overcome the issue, you can write your own mapping file. Using notepad for
  example you can edit a file with the .kbd extension and put it in the kbd 
  directory.

  For the exact syntax of those mapping files, have a look on sample files already
  presents in the kbd directory (default.kbd etc ...).

  After writting such keyboard mapping file, you can load them using the main menu
  inside the emulator.

  (NOTE) If the keyboard filename is the same as the snapshot (.sna) or disk
  filename (.dsk) then when you load this snapshot file or this disk, the 
  corresponding keyboard file is automatically loaded !

  (NEW!!) You can now use the Keyboard menu and edit, load and save your
  keyboard mapping files inside the emulator. The Save option save the .kbd
  file in the kbd directory using the "Game Name" as filename. The game name
  is displayed on the right corner in the emulator menu.
  

7. COMPILATION
   ------------

  It has been developped under Linux using gcc with PSPSDK. 
  To rebuild the homebrew run the Makefile in the src archive.
