Mednafen's "apple2" emulation module emulates an Apple II/II+. It is geared more towards running individual software releases independently of other software releases; it can be used differently, but the abstractions chosen may make it rather awkward.
Single-disk single-side software can be loaded directly. Multi-disk or multi-side software will require the creation of a special configuration file, saved with the file extension "mai", to be loaded with Mednafen.
Mednafen does not write to the floppy disk image files specified via the MAI configuration file. Modified disk data is automatically saved into and loaded from files in Mednafen's nonvolatile memory/save game directory. The ID/hash used in naming these files is calculated by hashing data generated based on the contents of the disk image files and any firmware files referenced in the MAI configuration file, along with the values of settings that control the hardware configuration.
In addition to loading a naked MAI file, Mednafen supports automatically loading a MAI file from within a ZIP archive. Any referenced files(e.g. floppy disk images and override firmware) must also be in the same ZIP archive. In regards to Mednafen selecting the correct file to open, the ordering of the MAI file in the ZIP archive in relation to other files doesn't matter.
Sample MAI configuration file:
MEDNAFEN_SYSTEM_APPLE2 # Above signature must be the first line. # # File paths specified in this file are relative to the directory containing the MAI file. # # # Specify available RAM, in KiB. Can be one of: 4 8 12 16 20 24 28 32 36 40 44 48 64 # Specifying "64" enables emulation of a RAM-based 16K language card. # # Default: 64 # ram 64 # # Select Apple II/II+ firmware. Options are: integer applesoft # Ignored if "firmware.override" is specified. # # Default: applesoft # firmware applesoft # Apple II/II+ firmware, 12KiB, located at $D000-$FFFF # Optional; specify to override the firmware loaded via Mednafen's firmware # loading system. # #firmware.override "apple2.rom" # # Select ROM card firmware. Options are: none integer applesoft # ROM card emulation is disabled if "none" is selected(regardless of the "romcard.override" setting), or if 64K of RAM # is selected by the "ram" setting. # # Default: integer # romcard integer # # (see firmware.override description) # Note: Ignored if "romcard" is set to "none". # #romcard.override "applesoft.rom" # # Select game input device(s). # # none: no game I/O devices # # paddles: two rotary dial paddles # # joystick: 2-axis, 2-button joystick, with selected default resistance # setting(1 through 4). # # gamepad: 2-axis(D-pad), 2-button gamepad, with selected default resistance # setting(1 through 4). # # atari: two Atari digital joyport joysticks # # Examples: # gameio none # gameio paddles # gameio joystick 2 # gameio gamepad 2 # gameio atari # # Default: joystick 2 # gameio joystick 2 # # Specify (maximum) resistance, in Ω, for each of the four selectable # resistance settings for the "joystick" and "gamepad" devices. # # Default: 93551 125615 149425 164980 # gameio.resistance 93551 125615 149425 164980 # # Enable Disk II in Slot 6(with two 5.25" disk drives attached). # # Default: 1 # disk2.enable 1 disk2.drive1.enable 1 disk2.drive2.enable 1 # Select 16-sector Disk II firmware. Options are: 13sec 16sec # Effectively ignored if "disk2.firmware.override" is set. # # Default: 16sec # disk2.firmware 16sec # Optionally, specify to override the firmware loaded via Mednafen's # firmware loading system. # #disk2.firmware.override "disk2_dos33_boot.rom" "disk2_dos33_seq.rom" # # Define available floppy disks (or sides). Disk identifiers(the part # immediately after "disk2.disks." must only contain characters a-z, 0-9, and _) # # Fields are: name filepath write_protect(optional) # If the write_protect field is omitted, then the default write protect setting # for the format is used. For WOZ disk images, write protect is explicitly # specified in the INFO header. For other formats, write protect defaults # to off(0). # disk2.disks.game1 "Disk 1 - Boot" "SomeGame - Disk 1.dsk" 1 disk2.disks.game2 "Disk 2" "SomeGame - Disk 2.dsk" 1 disk2.disks.game3 "Disk 3" "SomeGame - Disk 3.dsk" 1 disk2.disks.save "Save Disk" "SomeGame - Save Disk.dsk" 0 # # Specify which disks are allowed to go into which drive. # # Prefix the disk identifier with a * to start with that disk inserted. # # Don't insert the same disk (identifier) into different # drives at the same time unless you're some sort of spacetime wizard. # disk2.drive1.disks *game1 game2 game3 disk2.drive2.disks *save
If a virtual floppy disk image in memory has been modified(written to) during the course of emulation, the in-memory floppy disk image will be saved into a separate file under Mednafen's nonvolatile memory directory upon exit. On subsequent invocations with the same floppy disk image(or MAI file and its associated floppy disk images), this separate floppy disk image will be transparently loaded at startup and its data used in lieu of the source floppy disk image when creating the virtual floppy disk image in memory.
The following 5.25" Apple II floppy disk image formats are supported:
| Extension: | Size(Bytes): | Description: |
|---|---|---|
| d13 | 116480 | Apple DOS 13 sectors/track |
| dsk do | 143360 | Apple DOS-order 16 sectors/track |
| po | 143360 | Apple ProDOS-order 16 sectors/track |
| woz | (variable) | https://applesaucefdc.com/woz/ |
Place the correct firmware image files in the correct location.
If you want to use custom or modified firmware, create and load a MAI configuration file.
If you make a linear dump of your Disk II P6 sequencer ROM(s) through the P5 socket via a program running on an Apple II, remember to process the resulting data to swap: A7 and A5, D4 and D7, D5 and D6.
In contrast, the required Disk II P5 boot ROM format has its data arranged how it appears to the 6502(i.e. as if it's just linearly dumped with a simple program running on an Apple II).
| Filename: | Purpose: | SHA-256 Hash: |
|---|---|---|
| apple2-int-auto.rom | Apple II Integer BASIC and Autostart System ROMs, concatenated(8KiB).
Consists of 2KiB ROMs(in order, with SHA-256 hashes):
341-0001
341-0002
341-0003
341-0020 | cb52b212a62f808c2f59600b2823491ee12bd91cab8e0260fe34b5f14c47552f
(TODO: verify) |
| apple2-asoft-auto.rom | Apple II+ AppleSoft BASIC and Autostart System ROMs, concatenated(12KiB).
Consists of 2KiB ROMs(in order, with SHA-256 hashes):
341-0011
341-0012
341-0013
341-0014
341-0015
341-0020 | fc3e9d41e9428534a883df5aa10eb55b73ea53d2fcbb3ee4f39bed1b07a82905 |
| disk2-13boot.rom | Disk II Interface 13-Sector P5 Boot ROM, 341-0009 | 2d2599521fc5763d4e8c308c2ee7c5c4d5c93785b8fb9a4f7d0381dfd5eb60b6 (TODO: verify) |
| disk2-13seq.rom | Disk II Interface 13-Sector P6 Sequencer ROM, 341-0010 | 4234aed053c622b266014c4e06ab1ce9e0e085d94a28512aa4030462be0a3cb9 |
| disk2-16boot.rom | Disk II Interface 16-Sector P5 Boot ROM, 341-0027 | de1e3e035878bab43d0af8fe38f5839c527e9548647036598ee6fe7ec74d2a7d |
| disk2-16seq.rom | Disk II Interface 16-Sector P6 Sequencer ROM, 341-0028 | e5e30615040567c1e7a2d21599681f8dac820edbdcda177b816a64d74b3a12f2 |


"Standard", "mednafen" => "Mednafen", "cxa1213" => "CXA1213", "cxa2025_japan" => "CXA2025 Japan", "cxa2025_usa" => "CXA2025 USA", "cxa2060_japan" => "CXA2060 Japan", "cxa2060_usa" => "CXA2060 USA", "cxa2095_japan" => "CXA2095 Japan", "cxa2095_usa" => "CXA2095 USA"); foreach($images as $k=>$v) { echo('
| ' . htmlspecialchars($v) . ' |
|---|
![]() |
| Game: | Preferred Resistance Setting(1, 2, 3, or 4): |
|---|---|
| Boulder Dash | 3 |
| Bouncing Kamungas | 2 |
| Mario Bros | 2 |
| Ms. Pac-Man | 2 |
| Pac-Man | 2 |
| Stargate | 1 |
| Thexder | 2 |
| Wavy Navy | 2 |
| Xevious | 2 |
| Zaxxon | 1 |
| Key(s): | Virtual Apple II/II+ Key: |
|---|---|
| A ↑ Keypad 8 | A |
| Z ↓ Keypad 2 | Z |
| B through Y | B through Y |
| 0 through 9 | 0 through 9 |
| - | : |
| = | - |
| Insert | RESET |
| Tab ESC | ESC |
| [ ALT | REPT |
| \ Enter Home | RETURN |
| Caps Lock CTRL | CTRL |
| ; Keypad 4 | ; |
| Backspace ⭠ Keypad 5 Delete | ⭠ |
| ⭢ Keypad 6 Page Down | ⭢ |
| SHIFT | SHIFT |
| , | , |
| . | . |
| / End | / |