The Virtual Keyboard
The keyboard graphic responds to mouse clicks, touch events, and key presses. Hold your shift key while clicking the PET keyboard to get the graphics characters or use the toggling shift keys on the virtual keyboard.
(The emulator simulates pressing the PET's left shift-key at the same time as the clicked key.)
Using a real keyboard, the TAB key substitutes the up-arrow key of the PET and ALT/option + TAB the left-arrow key.
For games you may want to disable the emulated keyboard repeat by switching the "Repeat" menu to "off". (The automatic key-repeat, not found on the original PET 2001, may cause games to behave rather unresponsive.)
Loading and Saving Programs
The emulator has an IEEE-488 device attached at address 8, which can be used to load and save (.prg) files.
To load program files that are on your local disk, first select the file with the browse button. Then type LOAD "NAME",8 into the PET. To save a program, type SAVE "NAME",8 and then you'll be prompted to save the file.
You may also drag and drop a .prg or .pet file onto the virtual PET's screen to load and auto-run the respective program.
(Note that IEEE-488 doesn't work very well with ROM version 1.)
D64-disk images may be mounted either by the file-input or by drag-and-drop. The emulator will parse the disk image and present a file dialog to chose from. (You may bring up this dialog again by clicking the button "Disk Directory", shown to the left of the file-input button, once a disk image has been loaded.)
Finally, you may load or drag-and-drop text-files (with extensions .txt, .ba, .bas) of BASIC source text. The emulator will generate a tokenized BASIC program and load it into memory, but will not run it automatically. The source code may be either in lower case or in upper case (or even mixed). The usual abbreviations for commands are recognized (works best in lower case source texts).
Some PET games with hot-links to run them in this emulation can be found in this file list.
A large collection of .prg programs is to be found at www.zimmers.net/anonftp/pub/cbm/pet/ALLFILES.html. Take a look under demos/Cursor/ and games/.
ROMs and RAM
Some programs don't run on ROM1 or require more memory.
Changing the size of memory or changing the ROM version forces a reset of the PET.
Exporting Screen Dumps
Press the "Copy" button to export what's currently on the screen in text format. This will bring up a text-area with the current screen contents converted to Unicode, ready for copy-and-paste. (There isn't a suitable replacement for each of the PET's block-graphics characters, but the emulation will do its best to export something meaningful.)
SHIFT-click the "Copy" button for a hex-dump of the screen memory.
ALT-click the "Copy" button to export a BASIC program that will reproduce the current screen contents.
You may also export a dump of the screen as a static PNG image using the "Img" button.
Memory Dumps and Exports
The "List" button provides additional means to export a program or memory contents:
Clicking the button will export the BASIC program currently in memory in portable text format, converting any special characters in strings or PRINT-statements to CHR$(...)-sequences.
SHIFT-clicking the "List" button will bring up a prompt for exporting an arbitrary memory range as a hex-dump.
ALT-clicking this button will bring up a prompt for a disassembly of an arbitrary memory range.
Finally, ALT + SHIFT clicking will export the current BASIC program as a hex-dump.