XM6 TypeG
XM6 TypeG emulates Sharp X68000. It reads 30 files, 2 of them required: without a required file it does not start games.
About this profile
Technical notes
Closed-source Windows fork of XM6 v2.06 by GIMONS, maintained again by PI. Distributed from PI's XM6 page as one archive, xm6_typeg_338_20260223.zip (sha256 71c2b3429163128f...), holding an x64 xm6g.exe (sha256 3d50aab23ce6c8ae1677b1ca8adaa8b0c6c9dabb1c06b98d0f2ea10fe44ac5de), the Visual C++ 2015-2019 runtime it imports (mfc140u.dll, msvcp140.dll, vcruntime140.dll, vcruntime140_1.dll, loader-resolved) and xm6g.pdf. No source is published. Every address below is a virtual address in that xm6g.exe, function bounds taken from its .pdata. ES-DE launches it through the XM6TYPEG and XM6TYPEG-WINDOWS find rules with the working directory set to the emulator folder, on Linux under Wine or Proton.
System files sit in a twenty-entry pointer table at 0x140592350 (IPLROM.DAT first, STATE.XM6 last). Filepath::SysFile at 0x1404e76d0 indexes it, copies the name, splits it and jumps to 0x1404e7950, which refills drive and directory from GetModuleFileNameW, so every system file is read beside xm6g.exe and no configured directory takes part. LoadROM inlines the same sequence for index 0 (0x1404fca8d-0x1404fcb52). Fileio::Open is 0x1404e7390 (CreateFileW) and Fileio::Load 0x1404e7200 (ReadFile, success only when the full count is read).
LoadROM (0x1404fc990) takes a memory type set by Memory::ApplyCfg (0x1404fe390): types 1 to 3 are the base X68000 with no SCSI, internal SCSI or external SCSI, 4 is XVI, 5 Compact, 6 X68030 and 7 X68030 with the expansion ROM option on. It reads the IPL ROM, then the CG ROM, then the SCSI ROM, and a short ReadFile count fails the load, so every min_size below is a floor and a longer file loads with its tail ignored.
The startup path to LoadROM(1). The CRT calls wWinMain at 0x1405767ad, a thunk at 0x1405776fc to AfxWinMain (mfc140u.dll 14.42.34433.0 ordinal 2370), which calls InitInstance through vtable offset 0xb0 (0x1802b2ba7-0x1802b2bae in that DLL). The application object at 0x14084db20 is built by the static initializer 0x140425b90 (initializer table entry 0x14057e990) with vtable 0x14057ec20, whose slot 22 (+0xb0) is InitInstance 0x140425e30. InitInstance allocates the frame window (0x140425fb0), sets its vtable 0x1405aed50 (0x140425fd4) and creates it through slot 91 (+0x2d8, 0x14042614d-0x140426186). WM_CREATE reaches OnCreate 0x140470ef0 through the frame message map 0x1405acf78 (GetMessageMap slot 12, 0x140470eb0, entry 0x1405acf90). OnCreate allocates the 0x208c0-byte VM (0x140471135), stores it at 0x140822790 (0x14047120e) and calls VM::Init 0x140565f60 at 0x140471218. VM::Init constructs the memory device at 0x140566443 (constructor 0x1404fc3d0 sets vtable 0x1405c0830 at 0x1404fc3f9, and the device constructor 0x1404c1270 appends it to the device list at VM+0x20040), then walks that list calling vtable slot 1 (+0x8) at 0x14056762a. Slot 1 of the memory vtable (0x1405c0838) is Memory::Init 0x1404fc5d0, which calls LoadROM(1) at 0x1404fc669 and returns 0 on failure (0x1404fc97f). A zero clears the result at 0x140567631, VM::Init returns it at 0x140567640, and OnCreate sets error state 1 at 0x140471221 and posts message 0x8000 at 0x14047123b. Message map entry 0x1405ad110 routes 0x8000 to 0x1404737a0, which for state 1 (0x1404737d6) loads string 47002 or 42002, "XM6 requires two ROM files, IPLROM.DAT file and CGROM.DAT(or CGROM.TMP) file", shows it with MB_ICONSTOP (0x14047383e) and posts WM_CLOSE (0x140473853).
Memory::Reset (0x1404fd610) loads any other type on demand: type 7 falls back to 6 (0x1404fd682), and any failure falls back to type 1 (0x1404fd6bc), so a missing model ROM only loses that machine.
SRAM::Reset picks its file from the machine index at VM+0x2002c (0x1405565f7). The index is the [Basic] ModelType setting of xm6g.ini, 0 to 3 for the base machine, XVI, Compact and X68030: INI table entry 0x140581240 binds that key to configuration offset 0x2bfc (0x14082539c), read by the INI loader 0x1404270a0 (0x1404270fe), the field Memory::ApplyCfg reads at 0x1404fe3b8. The configuration apply at 0x140473630 copies it to VM+0x20028 (0x14047367f), and VM::Reset 0x140567660 copies VM+0x20028 to VM+0x2002c at 0x14056768e. OnCreate runs the two at 0x14047148e and 0x14047149a. When Memory::Reset falls back to the base machine, VM::Reset finds the loaded type at Memory+0xcbc outside the model (0x1405676b2-0x1405676e8) and zeroes the index at 0x1405676f3 before the devices reset, so SRAM.DAT is read. A saved state restores the index (0x140567c11).
The options page (0x140428f80) offers XVI, Compact and X68030 only when IPLROMXV.DAT, IPLROMCO.DAT and IPLROM30.DAT have GetFileSizeEx exactly 0x20000. Three startup checks run from 0x1404738b5 through 0x140472860, each skippable by its option. The IPL check (0x140472a99) reads the IOCS date bytes at 0x1000a, 0x1000c and 0x1000d of the base IPL and warns unless they spell 87/05/07. The CG check (0x14047296e) sums and XORs 0x1000 bytes at 0x3a800 of the font and warns unless they give 0xec and 0x84. The SCSI check (0x140501290) reads 0x2000 bytes of SCSIINROM.DAT (0x14050142d) and SCSIEXROM.DAT (0x140501599) and warns when 0x1ff8 holds "XM6 ", the stamp of the XM6 Utility replacements (0x14050147c, 0x1405015da). Each warning dialog (0x140487730) continues on OK and closes XM6 on Cancel. No genuine ROM is hashed anywhere in the executable.
XM6 Utility, published separately at the same address, synthesises CGROM.TMP from the installed Windows fonts and SCSIINROM.DAT or SCSIEXROM.DAT from the Human68k version 3.02 disk image HUMAN302.XDF, which it requires at 0x134000 bytes (XM6Util scsirom.cpp:86-90), and stamps "XM6 " at offset 0x1ff8 and a version at 0x1ffc (XM6Util scsirom.cpp:243-245).
The Mercury Unit OPN (YMF288) samples its rhythm section from files. The fmgen and X68Sound engines read six WAV files named from a table at 0x1405c0090 (0x1404ed610), and the ymfm engine reads ym2608_adpcm_rom.bin instead (0x140574eb0).
xm6g.ini and the state file STATE.XM6, the twentieth table entry, are written by the program and are not listed below. RTC.DAT and the SRAM files are listed because they are battery-backed images with hardware counterparts that preload settings when supplied. XM6 TypeG writes them back on exit (SRAM 0x140556498, RTC 0x1405321a9), so it creates them when they are absent.
30 files: 2 required, 28 optional.
In this collection: 24 in repo, 0 missing and 6 unsourceable.
Required
Section titled “Required”| File | Status |
|---|---|
IPLROM.DATX68000 boot ROM version 1.0, base models
Validation and source
|
in repo |
CGROM.DATX68000 character generator ROM
Validation and source
|
in repo |
Optional
Section titled “Optional”| File | Status |
|---|---|
IPLROMXV.DATX68000 XVI boot ROM version 1.1
Validation and source
|
in repo |
IPLROMCO.DATX68000 Compact boot ROM version 1.2
Validation and source
|
in repo |
IPLROM30.DATX68030 boot ROM version 1.3, $FE0000-$FFFFFF half
Validation and source
|
in repo |
ROM30.DATX68030 boot ROM version 1.3, $FC0000-$FDFFFF half
Validation and source
|
in repo |
IPLROM30S.DATExpansion boot ROM, $FE0000-$FEFFFF
Validation and source
|
in repo |
ROM30S.DATExpansion boot ROM, lower half
Validation and source
|
in repo |
CGROMXV.DATX68000 XVI character generator ROM
Validation and source
|
in repo |
CGROMCO.DATX68000 Compact character generator ROM
Validation and source
|
in repo |
CGROM30.DATX68030 character generator ROM
Validation and source
|
in repo |
CGROM.TMPSynthesised font ROM, fallback when no CG ROM is present
Validation and source
|
unsourceable |
SCSIINROM.DATInternal SCSI interface ROM, SUPER and later
Validation and source
|
in repo |
SCSIEXROM.DATExternal SCSI interface ROM, CZ-6BS1 board
Validation and source
|
in repo |
SRAM.DATSRAM image for EXPERT and the other base models
Source
|
unsourceable |
SRAMXVI.DATSRAM image for XVI
Source
|
unsourceable |
SRAMCMP.DATSRAM image for Compact
Source
|
unsourceable |
SRAM030.DATSRAM image for X68030
Source
|
unsourceable |
RTC.DATRTC alarm settings for timer start
Source
|
unsourceable |
ym2608_adpcm_rom.binYM2608 ADPCM-A rhythm ROM, ymfm engine
Source
|
in repo |
2608_BD.WAVMercury Unit rhythm sample, bass drum
Source
|
in repo |
2608_SD.WAVMercury Unit rhythm sample, snare drum
Source
|
in repo |
2608_TOP.WAVMercury Unit rhythm sample, top cymbal
Source
|
in repo |
2608_HH.WAVMercury Unit rhythm sample, hi-hat
Source
|
in repo |
2608_TOM.WAVMercury Unit rhythm sample, tom-tom
Source
|
in repo |
2608_RIM.WAVMercury Unit rhythm sample, rim shot
Source
|
in repo |
X68Sound.dllFM synthesis engine by m_puusan
Source
|
in repo |
c86ctl.dllControl library for external OPM hardware
Source
|
in repo |
pcidebug.dllPCI bus bridge library, used to reach a ROMEO sound board
Source
|
in repo |
SOUND Canvas VA.dllRoland Sound Canvas VA plugin used as MIDI output
Source
|
in repo |
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