Help
Getting started
Ink6128 is an Amstrad CPC 6128: it boots straight into Locomotive BASIC 1.1. Click the screen so
it receives your keystrokes, then type, for example, PRINT "HELLO" and
Enter.
The Disks screen holds the games that come with Ink6128: click a disc and it goes in drive A, the CPC restarts and the game starts by itself. Each disc is also a link: Copy link under it gives an address that starts the game for whoever opens it.
The site follows your browser's language; the menu in the top bar changes it.
To play another game, drop its .dsk file on the screen and press Run in the
drive A panel (or type CAT to see the files, then RUN"name).
Keyboard
Type naturally: characters are translated to the CPC layout, so AZERTY, QWERTZ and QWERTY keyboards all type what is printed on their keys. Fast typing is buffered, and Ctrl+V types a whole BASIC listing.
| Your keyboard | CPC |
|---|---|
| Enter | RETURN |
| Numpad Enter | ENTER (small enter key) |
| Backspace | DEL (delete left) |
| Delete | CLR (delete under the cursor) |
| Esc | ESC: press it twice to stop a BASIC program |
| Alt | COPY: Shift+arrows move the copy cursor, COPY copies the character under it |
| Ctrl | CONTROL |
| Arrows | Cursor keys (or the joystick in joystick mode) |
| Numpad 0–9, . | Function keys f0–f9, f. |
Emulator shortcuts
| F12 | Pause / resume |
| F2 | Save the machine state |
| F4 | Restore the saved state |
Joystick
Press Joystick in the toolbar to turn the arrows into joystick 0: X is fire 1, Z is fire 2 (by key position, so on AZERTY use the keys left of the bottom row). Every other key still types. Press the button again to get the cursor keys back.
A gamepad works at any time, without joystick mode: D-pad or left stick to move, A or Y for fire 1, B or X for fire 2. Press a button once so the browser detects it.
Discs
-
Insert: drop a
.dskfile on the screen (drive A) or on the drive B panel, or use Insert…. -
Run: the drive A panel suggests the command that starts the disc
(
RUN"DISC,|CPM…) and types it for you. Nothing starts on its own. - New: inserts a blank formatted disc, ready for
SAVE"name. -
Save: downloads the disc as a
.dskfile, with everything the CPC wrote to it. - Discs written by the CPC are marked modified and kept in your browser: they are still in the drives when you come back.
-
CATlists the files,|Aand|Bswitch drives,|ERA,"name"deletes a file.
Cassettes
Many games were sold on tape. Drop a .cdt (or .tzx) file on the
screen, or use Insert… in the Tape panel, then press Run: it rewinds, presses PLAY
and types |TAPE and RUN" for you. Loading takes as long as on the real
machine: the reels turn while the CPC runs the motor.
By hand: Play presses the deck's PLAY key, then type |TAPE,
RUN" and any key. |DISC goes back to the disc drive.
BASIC editor
The BASIC editor turns a program written in your browser into a disc. Insert & run puts it in drive A and runs it; Download .dsk saves the disc; Type it types the listing on the CPC keyboard instead. Lines without numbers are numbered 10, 20, 30…
From a terminal, npm run mkdisk -- game.bas loader.bin@4000 -o game.dsk builds a
disc from files on your computer.
Save states
Save state (F2) freezes the whole machine in your browser;
Load state (F4) brings it back, even after closing the page.
Export .sna downloads a snapshot that other CPC emulators can open, and dropping a
.sna file on the screen resumes it.
Display & sound
The display button switches between three filters: CRT (curved glass, scanlines and
phosphor mask of an old TV), Sharp (crisp square pixels) and Smooth (staircase
edges smoothed, Scale2x-style). The choice is remembered, and ?filter=sharp in the
address picks one. Without WebGL, CRT is drawn as a simple scanline overlay and Smooth is not
offered. Fullscreen fills the screen. Browsers only allow sound after a click or a key
press: it starts by itself then, and Sound mutes it.
CPCs were fitted with different video controllers (CRTC), and some demos and games only work on
one of them. Open the address with ?crtc=1 added (any type from 0 to 4) to emulate
another one: 0 (HD6845S, the default), 1 (UM6845R), 2 (MC6845), 3 (6128 Plus ASIC) or 4
(AMS40226). Without the parameter, the emulator uses type 0.
Debugger
The Debugger tab under the screen opens a panel for looking inside running programs: the
Z80 registers and flags, the stack, the code being executed (disassembled) and a memory dump.
Addresses are typed in hexadecimal (&BB5A, BB5A,
$BB5A) or as a register name (HL, SP).
| Action | How |
|---|---|
| Stop / continue | Break / Continue, or F9 |
| Execute one instruction | Step, or F7 |
Run a CALL, RST or loop in one go |
Step over, or F8 |
| Set or clear a breakpoint | Click a line of code, or type its address under Breakpoints |
| See the code a return address goes back to | Click a stack entry |
Memory is shown as the Z80 currently sees it, with the ROM and RAM banks selected at that moment. The machine stops before executing the instruction of a breakpoint.
BASIC cheat sheet
LIST · RUN · NEW |
Show, start, erase the program |
AUTO |
Number lines automatically while typing (Esc stops) |
EDIT 20 |
Edit line 20 |
MODE 0 / 1 / 2 |
16 colours 20 columns / 4 colours 40 columns / 2 colours 80 columns |
INK 1,24 · PEN 1 · PAPER 0 · BORDER 5
|
Colours |
CLS · LOCATE x,y |
Clear the screen, move the cursor |
PLOT x,y · DRAW x,y |
Graphics (640×400 coordinates) |
SOUND 1,200,50 |
Play a note |
JOY(0) · INKEY$ |
Read the joystick, read a key |
SAVE"name" · LOAD"name" · CAT |
Disc files |
|CPM |
Start CP/M from a system disc |
Troubleshooting
- Nothing happens when I type: click the CPC screen first.
- No sound: click once on the page, then check the Sound button.
- A game asks to press fire: try joystick mode, Space, or a gamepad.
-
A disc does not start: type
CAT; CP/M discs start with|CPM. - The machine is stuck: Reset, or Load state if you saved one.
Contact
A question, a bug, an idea, or a game you would like to see on the Disks screen? Write to [email protected].