Mariani
Mariani emulates Apple II. It reads 3 files, none of them required: it starts games without them.
The app reads its files from this folder:
On macOS: ~/
Holds the debugger symbol tables, scripts and printer output. ROMs are read from Mariani.app/Contents/Resources only.
Source: source/, Mariani.xcodeproj/
About this profile
Technical notes
Cocoa frontend for AppleWin, macOS only, shipped as Mariani.app and carrying AppleWin 1.31.0.5 (resource/version.h). ES-DE launches it with --d1 for the floppy in slot 6 drive 1.
Resources are files inside the application bundle instead of Win32 resources
linked into the binary. MarianiFrame::GetResourceData maps each AppleWin
resource id to a file name, NSBundle resolves it against Contents/Resources,
and the file is read with open() then kept in a map for later requests
(source/, source/). LinuxFrame::GetResource
throws when the file it gets back does not have the size the call site asked
for (source/), so each entry below carries the size the code
demands. A name that resolves to nothing raises a "Resource not found" alert
and returns a null pointer.
Machine types offered in preferences: Apple II, II Plus, II J-Plus, //e,
enhanced //e, Pravets 82, Pravets 8M, Pravets 8A, TK3000 //e and Base64A
(source/, 741-751). MemInitializeROM picks the
system ROM from that setting (source/Memory.cpp:2052-2069). Default slots are the
printer card in 1, Super Serial Card in 2, Mockingboard in 4 and Disk II in 6
(source/CardManager.cpp:325-334), while the hard disk and mouse cards are chosen by the
user.
Two names in the resource map have no file in the bundle: the Resources build phase lists 49 items and neither appears (Mariani.xcodeproj/project.pbxproj). Hddrvr-v2.bin is requested when a save state written with hard disk card version 4 is loaded (source/Harddisk.cpp:228, 1439-1443), and Freezes_Non-autostart_F8_Rom.rom when the configuration value "The Freeze's F8 Rom" is set on an Apple II (source/Memory.cpp:2163-2168, source/Utilities.cpp:188-189, source/Common.h:94). Contents/Resources is the only directory searched, so that is where the two belong.
The debugger comes up with the emulator, not with its window
(source/linux/context.cpp:116). CmdDebugStartup preloads four symbol tables
(source/Debugger/Debug.cpp:9488-9516), each read first from
~/Library/Application Support/<bundle id>/ and then from the bundle
(source/Debugger/Debugger_Symbols.cpp:774, 814-817, source/,
source/).
--rom and --f8rom install a 12k/16k and a 2k image from any path over the ROM
already loaded (source/, source/,
source/Memory.cpp:2120-2213). AppleWin's -videorom and its hard disk firmware
switches are unreachable here: ParseCmdLine has no caller in this tree, and
UseHdcFirmwareV1/V2 are called only from source/Windows/AppleWin.cpp:783-785, which
the Xcode project does not compile.
3 files: 0 required, 3 optional. 34 more files come with the app.
In this collection: 3 in repo and 0 missing.
Optional
Section titled “Optional”| File | Status | Hash |
|---|---|---|
Freezes_Non-autostart_F8_Rom.romNon-autostart F8 monitor ROM
Hashes, validation and source
|
in repo | MD5 d0a61e95ed1e |
Hddrvr-v2.binHard disk controller firmware, version 2
Hashes, validation and source
|
in repo | MD5 a49e45e7a6d4 |
A2_DOS33.SYM2Debugger symbol script for DOS 3.3
Hashes and source
|
in repo | MD5 88bd69906b4b |
Comes with the app
Section titled “Comes with the app”| File | Hash |
|---|---|
Apple2.romApple II system ROM, $D000 to $FFFF
Hashes, validation and source
|
MD5 3c406514b980 |
Apple2_Plus.romApple II Plus system ROM, $D000 to $FFFF
Hashes, validation and source
|
MD5 572b3005a4fa |
Apple2_JPlus.romApple II J-Plus system ROM, $D000 to $FFFF
Hashes, validation and source
|
MD5 f3e8237eca38 |
Apple2e.romApple //e system ROM, 4 KB internal Cx ROM then $D000 to $FFFF
Hashes, validation and source
|
MD5 346bc782c6a0 |
Apple2e_Enhanced.romEnhanced Apple //e system ROM, 4 KB internal Cx ROM then $D000 to $FFFF
Hashes, validation and source
|
MD5 38063e08c778 |
PRAVETS82.ROMPravets 82 system ROM, $D000 to $FFFF
Hashes, validation and source
|
MD5 c619b7edfcf0 |
PRAVETS8M.ROMPravets 8M system ROM, $D000 to $FFFF
Hashes, validation and source
|
MD5 76c79535f7cf |
PRAVETS8C.ROMPravets 8A system ROM, 4 KB internal Cx ROM then $D000 to $FFFF
Hashes, validation and source
|
MD5 1896d7b98dd9 |
TK3000e.romTK3000 //e system ROM, 4 KB internal Cx ROM then $D000 to $FFFF
Hashes, validation and source
|
MD5 8d84b614b545 |
Base64A.romBase64A system ROM, four 12 KB pages
Hashes, validation and source
|
MD5 352fdbcae14c |
Apple2_Video.romApple II and II Plus character generator
Hashes, validation and source
|
MD5 9ac0dc8c4d00 |
Apple2_JPlus_Video.romApple II J-Plus character generator
Hashes, validation and source
|
MD5 271e2c9bf928 |
Apple2e_Enhanced_Video.romApple //e character generator, US
Hashes, validation and source
|
MD5 9123fff3442c |
Base64A_German_Video.romBase64A character generator
Hashes, validation and source
|
MD5 4b45852b369e |
CHARSET82.bmpPravets 82 character generator bitmap
Hashes and source
|
MD5 5b4866713477 |
CHARSET8M.bmpPravets 8M character generator bitmap
Hashes and source
|
MD5 f2720f708590 |
CHARSET8C.bmpPravets 8A character generator bitmap, both character sets
Hashes and source
|
MD5 9248c1f19f3d |
DISK2.romDisk II controller firmware, 16 sector
Hashes, validation and source
|
MD5 2020aa1413ff |
DISK2-13sector.romDisk II controller firmware, 13 sector
Hashes, validation and source
|
MD5 4f80448507cf |
SSC.romSuper Serial Card firmware
Hashes, validation and source
|
MD5 67c0d61ab091 |
Parallel.romParallel printer card firmware
Hashes, validation and source
|
MD5 5902996f16dc |
MouseInterface.romMouse interface card firmware
Hashes, validation and source
|
MD5 22563ab33802 |
HDC-SmartPort.binHard disk controller firmware, SmartPort
Hashes, validation and source
|
MD5 2592efa1d34a |
Hddrvr.binHard disk controller firmware, version 1
Hashes, validation and source
|
MD5 e0a40e9166af |
bootsector.binBoot sector written to a new DOS 3.3 disk image
Hashes, validation and source
|
MD5 6ab4d0a20071 |
bootsector_prodos243.binTwo boot sectors written to a new ProDOS disk image
Hashes, validation and source
|
MD5 2695dc545807 |
dos33c.binDOS 3.3 image copied to the first three tracks of a new disk
Hashes, validation and source
|
MD5 46a02fc4775b |
prodos243.binProDOS 2.4.3 kernel written as PRODOS on a new ProDOS disk
Hashes, validation and source
|
MD5 90644bd658fd |
bitsy.boot.binBitsy Boot system file for a new ProDOS disk
Hashes, validation and source
|
MD5 e6e8f7edc3ae |
quit.system.binBitsy Bye quit system file for a new ProDOS disk
Hashes, validation and source
|
MD5 6a32c39d8ac2 |
basic17.system.binBASIC.SYSTEM 1.7 written to a new ProDOS disk
Hashes, validation and source
|
MD5 a8d8c08f5cb4 |
APPLE2E.SYMDebugger symbol table for the main ROM
Hashes and source
|
MD5 034527d42a96 |
A2_BASIC.SYMDebugger symbol table for Applesoft BASIC
Hashes and source
|
MD5 7253a9ba7d7c |
PrintChar21.ttfPrint Char 21 font used by the debugger console and inspector
Hashes and source
|
MD5 972ce55fa7b9 |
Profile data
Section titled “Profile data”Source analysis
-
bundle layout:
- resource folder: Mariani.app/Contents/Resources
- lookup: NSBundle pathForResource, no fallback directory
- reader: open() and read(), cached per resource id in MarianiFrame::roms
- size check: LinuxFrame::GetResource throws when the size differs from the one the call site expects
- missing file: modal alert titled Resource not found, then a null pointer
- source ref:
source/frontends/mariani/MarianiFrame.cpp:156-232,source/frontends/mariani/AppDelegate.mm:1465-1469,source/linux/linuxframe.cpp:133-145
-
support directory:
- path: ~/Library/Application Support/com.applewin.marianipro/
- holds: debugger symbol tables, debugger scripts, printer output, g_sProgramDir
- source ref:
source/frontends/mariani/AppDelegate.mm:1471-1485,source/frontends/mariani/MarianiFrame.cpp:36
-
unreachable resources:
- filename: Mockingboard-D.rom, reason: IDR_MOCKINGBOARD_D_FW appears only in the resource header and in the frontend's name table, and nothing requests it, source ref:
resource/resource.h:38,source/frontends/mariani/MarianiFrame.cpp:172 - filename: TKClock.rom, reason: IDR_TKCLOCK_FW appears only in the resource header and in the frontend's name table, and nothing requests it, source ref:
resource/resource.h:51,source/frontends/mariani/MarianiFrame.cpp:175 - filename: ThunderClockPlus.rom, reason: Its only consumer, LoadRom_Clock_ThunderClockPlus, has no caller in the tree, reads through the Win32 FindResource API and lives in a file the Xcode project never compiles, source ref:
source/Peripheral_Clock_ThunderClockPlus.cpp:200-215,resource/resource.h:40 - filename: Debug_Font.bmp, reason: IDB_DEBUG_FONT_7_by_8 is fetched with Win32 LoadBitmap against the Windows frame, and MarianiFrame::GetBitmap answers only the three CHARSET ids. Mariani draws its debugger with AppKit, source ref:
source/Debugger/Debugger_Display.cpp:595,source/frontends/mariani/MarianiFrame.cpp:52-65
- filename: Mockingboard-D.rom, reason: IDR_MOCKINGBOARD_D_FW appears only in the resource header and in the frontend's name table, and nothing requests it, source ref:
-
symbol tables:
-
lookup: g_sProgramDir then g_sBuiltinSymbolsDir, which is the folder holding the bundled .SYM files
-
source ref:
source/Debugger/Debugger_Symbols.cpp:45-55,source/Debugger/Debugger_Symbols.cpp:774,source/Debugger/Debugger_Symbols.cpp:814-817,source/frontends/mariani/AppDelegate.mm:1487-1491 -
preloaded at init:
- APPLE2E.SYM
- A2_BASIC.SYM
- A2_DOS33.SYM2
- A2_USER1.SYM
-
loaded on command:
- A2_ASM.SYM
- A2_USER2.SYM
- A2_SRC1.SYM
- A2_SRC2.SYM
- A2_PRODOS.SYM
-
note: DebugInitialize runs from InitialiseEmulator, so the preload happens even when the debugger window is never opened. Only APPLE2E.SYM and A2_BASIC.SYM are in the bundle. The user slots and the source and assembler tables have no distributed content and are written by whoever needs them. A missing table leaves the debugger running without those names.
-
-
debugger scripts:
- filename: DebuggerAutoRun.txt, source ref:
source/Debugger/Debug.cpp:365,source/Debugger/Debug.cpp:9436-9469, note: Run once at the first DebugInitialize, from the current directory and then from the support directory. Holds debugger commands written by the user. The copy in the source tree is empty.
- filename: DebuggerAutoRun.txt, source ref:
-
user supplied roms:
-
options:
- option: --rom, accepts: 12 KB image at $D000 or 16 KB image at $C000, any path, source ref:
source/frontends/common2/argparser.cpp:205,source/frontends/common2/programoptions.cpp:82-92,source/Memory.cpp:2173-2213 - option: --f8rom, accepts: 2 KB image at $F800, any path, source ref:
source/frontends/common2/argparser.cpp:206,source/frontends/common2/programoptions.cpp:93-102,source/Memory.cpp:2139-2161
- option: --rom, accepts: 12 KB image at $D000 or 16 KB image at $C000, any path, source ref:
-
note: Both are installed over the ROM already loaded from the bundle and neither has a fixed name. AppleWin's -videorom has no equivalent: ParseCmdLine is never called in this tree.
-
-
generated files:
-
written only:
- AppleWin.log
- Trace.txt
- save states
- screen recordings and screenshots
- printer spool file
-
written and read back:
- applewin.yaml
- AppleWinDebugger.cfg
-
note: applewin.yaml is the configuration registry, created under the settings root and overridable with --conf and --registry. All of these are produced by the emulator, none is user-supplied.
-
-
help book:
- filename: Mariani.help
- reason: Help bundle opened by AppKit through CFBundleHelpBookName, not by emulator code
- source ref:
source/frontends/mariani/Mariani-Info.plist:42-45,source/frontends/mariani/Base.lproj/MainMenu.xib:264
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start