From 9fa903ecf71c6ae43b87870dc81e105d139fe96a Mon Sep 17 00:00:00 2001 From: eientei95 Date: Mon, 21 Aug 2023 09:02:02 +1200 Subject: misc/astropc.cpp: Add notes on AstroCard dongle from looking at the game's code (#11496) --- src/mame/misc/astropc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mame/misc/astropc.cpp b/src/mame/misc/astropc.cpp index 64221c3ece0..a50901396cc 100644 --- a/src/mame/misc/astropc.cpp +++ b/src/mame/misc/astropc.cpp @@ -13,6 +13,11 @@ Contains video BIOS for Cyrix GX86 (PCI ID: 1078:0104) Games run on Red Hat Linux 32-bit, Linux kernel 2.4.21-rc6 +There is a dongle (internally called "AstroCard") attached to parallel port 1, +which uses I/O ports 0x300/0x304/0x308 (rw) and 0x378/0x379/0x37a (ro). +It appears to contain 508 bytes of XOR-encrypted code which is decrypted by +the game's executable. See the "ProtectCode" function, which writes the +decrypted "PutJtx" function into the program in memory. Known games @@ -34,7 +39,6 @@ Notes: * Is "Hawaii" the same game as "Treasure Hunting"? * The dslayrr sets appear to be pre-setup, have passwords set(?) * Game information in the rom entries comes from `AstroGame/data/setup2.txt` or `AstroGame/INF.ini` -* Functions in MainGame reference an "AstroCard" (InitAstroCard, WriteAstroCard, etc.), possible dongle? */ -- cgit v1.2.3