Closed-source Windows fork of PI's XM6 by M.I.J.E.T., distributed from
mijet.eludevisibility.org as three 7-Zip packages: the program, a mandatory DLL
Package and an optional Web Package. The build analysed here is the one RetroBat
serves as xm6pro.7z (sha256 2b44820429989fa2...), Version.txt 260920, with
XM6.exe sha256 df1ed921f5f00cfb54950f1672f659e3ceecc756016d0a76f3ccb5c1354a76ed
and MBCS/XM6.exe sha256 a4ac21e5fe15c865b931921068b03f5c8238dd992727ddc95b5f434f74a9a453.
Every address below is a virtual address in that Unicode XM6.exe. Release 81
(261031, XM6.exe sha256 4eb66f0229ca992c...) names the same system files, its only
new file name being the .IPS disk delta extension. XM6.exe is a 32-bit MFC
application whose import directory names mfc90u.dll and MSVCR90.dll, both
loader-resolved, so the Visual C++ 2008 runtime carried by the DLL Package, or the
redistributable, must sit beside the executable for the process to start. A
second non-Unicode build lives in MBCS/ and needs the same files duplicated there.
ES-DE launches it through the XM6PRO68K and XM6PRO68K-WINDOWS find rules with the
working directory set to the emulator folder, on Linux under Wine or Proton.
RetroBat registers it as xm6pro (Program.cs:189, Installer.cs:151), runs XM6.exe
from its own directory and rewrites XM6.ini before launch
(Xm6pro.Generator.cs:22-79).
System files sit in a ten-entry pointer table at 0x57a898 (IPLROM.DAT,
IPLROMXV.DAT, IPLROMCO.DAT, IPLROM30.DAT, ROM30.DAT, CGROM.DAT, CGROM.TMP,
SCSIINROM.DAT, SCSIEXROM.DAT, SRAM.DAT). Filepath::SysFile at 0x48b054 copies the
entry and calls 0x48ac18, which takes drive and directory from the executable
path that 0x48ab44 caches from GetModuleFileNameW (0x48aac0), so every system
file is read beside XM6.exe and no directory setting takes part.
Fileio::Load (0x489a75) opens the file and Fileio::Read (0x489d8b) succeeds only
when _read returns the full count, so the IPL and CG sizes below are floors. The
SCSI ROM loader compares _filelengthi64 (0x489e54) with the expected size and
rejects any other length.
Memory::LoadROM (0x4903d7) takes the memory type stored by Memory::ApplyCfg
(0x4908af, 0x4908cb) from the saved configuration: 1 to 3 are the base X68000 with
no SCSI, internal SCSI or external SCSI, 4 XVI, 5 Compact and 6 X68030. It loads
the IPL ROM, the CG ROM (0x48e737, called at 0x490560) and the SCSI ROM (0x49016a,
called at 0x490570). Memory::Init loads type 1 at 0x4909f7 and fails only when that
load fails, which cannot happen since the base IPL is built in and neither the CG
ROM nor the SCSI slot is mandatory for type 1. A requested type that fails to
load falls back to type 1 (0x49063b, 0x490658-0x49066a).
Two menu tools synthesise replacements. Synthesize replacement CG-ROM builds
CGROM.TMP from the installed MS Gothic and MS Mincho fonts, resolving CGROM.TMP at
0x45f8eb-0x45f8f4 and CGROM.DAT at 0x45fa47-0x45fa50. Synthesize replacement
SCSI ROMs asks for a Human68k version 3.02 disk image, dialog default
HUMAN302.XDF (0x45fd6a) with filter HUMAN302.??? (0x45fced), extracts
/BIN/FORMAT.X and writes SCSIINROM.DAT and SCSIEXROM.DAT, whose paths it resolves
at 0x45fc7a-0x45fc9e.
The ROM Warning options hold three checks, each suppressible. The IPL check
(0x48ee5c) accepts the base IPL when the IOCS date bytes at 0x1000a, 0x1000c and
0x1000d spell 87/05/07, and LoadROM identifies the IPL revision from the dword at
0x1000a against a table at 0x572458 (0x490519-0x490552). The CG check (0x48eea3)
sums and XORs 0x1000 bytes at 0x3a800 of the font and wants 0xec and 0x84. The
SCSI check (0x48eedc) reads 0x2000 bytes of SCSIINROM.DAT and SCSIEXROM.DAT and
flags a file holding "XM6 " at 0x1ff8, the stamp of synthesised replacements
(0x48ef82, 0x48efc6). Each check only raises a dialog, so no hash below is
enforced by the program.
XM6.exe carries this ROM internally and only reads the file when it is present, so the emulator boots without it. The embedded copy sits at 0x552458, file offset 1382488, in .rdata of the Unicode build and at file offset 1332664 in the MBCS build, stored in the 16-bit pairwise swapped form the loader produces. Unswapped it is the 131072-byte dump hashed here, catalogued by TOSEC as Sharp X68000 Boot ROM (1987)(Sharp), and it is the version 1.0 (05/07/1987) the IPL check accepts.
Size: min 128.0 KB (131,072 bytes), SHA1 0ed038ed2133
Source: offset 0x4903d7: 0x490461-0x490478 in XM6.exe 260920 Memory::LoadROM (types 1 to 3 give table entry 0, Filepath::SysFile 0x48b054), offset 0x490496 in XM6.exe 260920 Memory::LoadROM (Fileio::Load 0x20000), offset 0x49049f-0x4904bf in XM6.exe 260920 Memory::LoadROM (types 1 to 3 on failure copy the built-in 0x20000 bytes from 0x552458 and skip the swap), offset 0x4904f8 in XM6.exe 260920 Memory::LoadROM (16-bit swap 0x407710), offset 0x48ee5c in IPL check
Read when the configuration selects the XVI. Absent or short, LoadROM fails and the base X68000 runs instead. No internal copy is compiled into XM6.exe.
The SCSI half of the X68030 machine, and the only SCSI-slot ROM read at 0x20000 bytes, at exactly that length. When it is missing or of another size LoadROM fills the slot with 0xff, writes a stub header carrying the SCSIIN signature at offset 0x24, and the X68030 still starts. The copy here is the X68000 Firmware set's ROM30.DAT (SCSIIN, ROM Human 2.x, ROM FLOAT and the SCSI-IOCS binary), read out of an X68030 by the XM6 2.06 utility, which stamps its name at the tail of the image.
Source: offset 0x49016a: 0x4901cc-0x4901ea in XM6.exe 260920 LoadSCSIROM (type 6 gives table entry 4 and size 0x20000), offset 0x49025e in XM6.exe 260920 LoadSCSIROM (open, failure logs Unable to open ROM file), offset 0x4902a3-0x4902b9 in XM6.exe 260920 LoadSCSIROM (_filelengthi64 must equal 0x20000, else Wrong size for ROM file), offset 0x4902e5 in XM6.exe 260920 LoadSCSIROM (read), offset 0x49034f in XM6.exe 260920 LoadSCSIROM (16-bit swap), offset 0x4903d7 0x4905aa-0x490613 in Memory::LoadROM (absent: stub slot with the SCSIIN signature)
in repo
-
CGROM.TMP
Synthesised font ROM, fallback when CGROM.DAT is absent
Read only when CGROM.DAT is missing or short, at the same size. Tools > Synthesize replacement CG-ROM writes it from the installed MS Gothic and MS Mincho fonts. No hash is declared because the output depends on the fonts of the machine that generated it.
Not collected yet: synthesised from the fonts installed on the host, no canonical file (files not collected yet)
Size: min 768.0 KB (786,432 bytes)
Validation and source
Validation: size
Source: offset 0x48e737: 0x48e7ac-0x48e7b2 in XM6.exe 260920 (table entry 6, reached only after CGROM.DAT fails), offset 0x48e7c4 in XM6.exe 260920 (Fileio::Load 0xc0000), offset 0x48e7fe in XM6.exe 260920 (16-bit swap)
unsourceable
-
SRAM.DAT
X68000 SRAM image, boot device and memory switch settings
Read at startup and rewritten on exit, so XM6 creates it on first run and a supplied image only preloads the settings. Up to 64 KB is read with no size check. The program writes 16 KB, or 64 KB with the SRAM64K option.
Supplies the glyphs for text the X68000 renders. When neither font file loads, the font area is filled with 0x55, text shows as garbage and the emulator keeps running. The mandatory DLL Package ships this exact 786432-byte file, catalogued by TOSEC as Sharp X68000 CG ROM (1987)(Sharp), and it passes the CG check. The hash identifies that copy and is not verified by the program.
Size: min 768.0 KB (786,432 bytes), SHA1 8d72c5b4d63b
Source: offset 0x48e737: 0x48e783-0x48e78c in XM6.exe 260920 (table entry 5), offset 0x48e7a3 in XM6.exe 260920 (Fileio::Load 0xc0000), offset 0x48e7ac-0x48e7cb in XM6.exe 260920 (CGROM.TMP tried next), offset 0x48e7cd-0x48e7ef in XM6.exe 260920 (both absent: logs Unable to load CGROM.DAT or CGROM.TMP and fills the font with 0x55 at 0x42245f), offset 0x48e7fe in XM6.exe 260920 (16-bit swap), offset 0x48eea3 in CG check
MD5 cb0a5cfcf724
SCSIINROM.DAT
Internal SCSI interface ROM, X68000 SUPER and later
Needed for the internal SCSI option on the base X68000, which otherwise falls back to the plain base machine. The XVI and Compact start without it with the SCSI slot left at 0xff. The mandatory DLL Package ships this exact 8192-byte file and the hash identifies that copy, while the startup SCSI check only warns.
Source: offset 0x49016a: 0x4901b7-0x4901ea in XM6.exe 260920 LoadSCSIROM (types 2, 4 and 5 give table entry 7, size 0x2000), offset 0x4901fc-0x490219 in XM6.exe 260920 LoadSCSIROM (deferred while the flag read by 0x40b726 is set), offset 0x49025e in XM6.exe 260920 LoadSCSIROM (open), offset 0x4902a3-0x4902b5 in XM6.exe 260920 LoadSCSIROM (_filelengthi64 must equal 0x2000), offset 0x4902e5 in XM6.exe 260920 LoadSCSIROM (read), offset 0x49034f in XM6.exe 260920 LoadSCSIROM (swap), offset 0x4903d7 0x49057d-0x4905ad in Memory::LoadROM (types 4 and 5 continue with the slot at 0xff, types 2 and 3 fail), offset 0x48eedc 0x48ef1f-0x48ef82 in SCSI check
Needed for the external SCSI option on the base X68000, which otherwise falls back to the plain base machine. Two lengths are accepted: 8192 bytes, and the 8160-byte WinX68k layout. An 8192-byte image that starts with data rather than the blank register window is shifted to the same layout. The mandatory DLL Package ships the 8192-byte form hashed here.
Source: offset 0x49016a: 0x4901bc-0x4901ea in XM6.exe 260920 LoadSCSIROM (type 3 gives table entry 8, size 0x2000), offset 0x4902a3-0x4902d4 in XM6.exe 260920 LoadSCSIROM (_filelengthi64 must be 0x2000, or 0x1fe0 loaded at offset 0x20 behind 0x20 bytes of 0xff), offset 0x4902e5 in XM6.exe 260920 LoadSCSIROM (read), offset 0x490315-0x490346 in XM6.exe 260920 LoadSCSIROM (an 8192-byte image whose first dword is neither 0 nor 0xffffffff is moved up 0x20 bytes), offset 0x49034f in XM6.exe 260920 LoadSCSIROM (swap), offset 0x48eedc 0x48ef8f-0x48efc6 in SCSI check
Absent from the import directory and loaded on first archive use, so XM6 starts without it and reports Optional DLL Not Present, Archive support is not available. Enables loading disk images and state files from archives and writing XZ-compressed state files.
Size: 1.3 MB, SHA1 4bd854046c1b
Hashes and source
SHA1: 4bd854046c1bac850388ea29daece08cce46d332
Source: offset 0x401ce4: 0x401cfd-0x401d02 in XM6.exe 260920 (7Z.DLL through the loader 0x40ce48: LoadLibraryW beside XM6.exe at 0x40ce90, then the system directory at 0x40cf01, then the Windows directory at 0x40cf67), offset 0x401d1c-0x401d22 in XM6.exe 260920 (GetProcAddress CreateObject), offset 0x4505f0-0x4505fb in XM6.exe 260920 (absent: 0x412122 index 0 shows Optional DLL Not Present at 0x412109)
Delay-loaded, so the process starts without it, and every caller first loads it by name and skips its zlib path when that fails. XM6.exe resolves inflate, deflate and crc32 from it for deflate archives and PNG display captures.
Size: 58.5 KB, SHA1 6d957ba632df
Hashes and source
SHA1: 6d957ba632df5b06d49a901f2772df4301610a2a
Source: offset 0x5761ec for zlib1.dll in XM6.exe 260920 delay-load descriptor, offset 0x585a68 in IAT (crc32, inflate, inflateEnd, inflateInit2_, deflateEnd, deflateInit2_, deflateReset, deflate), offset 0x40cf85 0x40cf8e-0x40cf98 in IAT (ZLIB1.DLL through the loader 0x40ce48, handle cached at 0x59e66c), offset 0x414487 in callers, offset 0x4280bc and 0x489151-0x48915d in callers (absent: 0x412122 index 1 names 7z.dll or zlib1.dll in the Optional DLL Not Present dialog)