bare-metal Irem M92 emulator for Raspberry Pi.

Download now
for RPi 3 & 4 · free · GPLv3 · tested on hardware

01 Bare metal

JAMMA

Main CPU
NEC V33 · 9 MHz (TURBO: 20 MHz)
Sound CPU
NEC V35 · 14.318 MHz (opcodes decrypted with each game's Irem table)
FM
YM2151 · 3.58 MHz (ymfm)
PCM
Irem GA20 · 4 channels
Video
GA21 sprite DMA · GA22 sprites · GA23 three tile layers
Picture
320 × 240 · 60.01 Hz (424 × 262 at a 6.67 MHz pixel clock)
Interrupts
µPD71059 (8259)
Also
V35 · Z80 · YM2151 · DAC · GA25 (Irem M90 & M97)

RPi

Core 0
V33 · V35 · YM2151 · GA20 · 8259 (+ pads and UI)
Core 1
GA21 · GA22 · GA23 (draws each line just before it is sent)
Core 2
TV filters
Output
HDMI 1080p (4×) or 720p (3×), integer scaling · 48 kHz audio
Pads
USB, polled every 1 ms · up to 4 players

02 Visions

Game list with the m92-pi logo
Game list
Undercover Cops in play, on the beach
Undercover Cops
Detail of Undercover Cops through the COMPOSITE filter: colour fringes and dot crawl on the edges
Optional COMPOSITE filter (detail)
In-game menu
In-game menu
DIP switches menu
DIP switches
Options menu
Options

03 Beam racing

m92-pi uses beam racing to send each scanline to the TV as soon as it is rendered, in sync with the display's refresh. An emulator with double buffering instead waits for the entire frame to be rendered before presenting it, adding up to one frame of latency.

beam racing
double buffering
button pressed the game reads the pads frame rendered frame sent to the TV, line by line

04 ROMs

YearGamePl.Btn.MAME sets
1991Blade Master 22bmaster crossbld
1991Bomber Man (M90) 42dynablst bombrman atompunk
1992Bomber Man World (M97) 42bbmanw bbmanwj bbmanwja newapunk
1994Dream Soccer '94 42dsoccr94j
1994Gun Force II 22gunforc2 geostorm geostorma
1991Gunforce 22gunforce gunforcej gunforceu
1992Hook 42hook hooku hookj
1993In The Hunt 22inthunt inthuntu kaiteids inthuntk
1991Lethal Thunder (TATE) 22lethalth thndblst
1992Major Title 2 42majtitl2 majtitl2a majtitl2b majtitl2j skingame skingame2
1992Mystic Riders 22mysticri gunhohki mysticrib
1993Ninja Baseball Bat Man 42nbbatman nbbatmanu leaguemn leaguemna
1992R-Type Leo 22rtypeleo rtypeleoj
1993Risky Challenge (M97) 22riskchal gussun
1993Superior Soldiers 26ssoldier psoldier
1992Undercover Cops 32uccops uccopsu uccopsj uccopsar uccopsaru

49 sets, 16 games: 13 for the M92, 3 for the M90/M97.
Lethal Thunder is a vertical game (TATE): turn the monitor on its side. ROMs are matched by CRC: any MAME version works. Games not included.

05 Install

  1. Format a micro SD card as FAT32 and copy everything from the zip to its root.
  2. Put your games in the m92pi folder as MAME zips. A clone also needs its parent's zip.
  3. Connect a USB pad and the TV, insert the card, switch on.

06 Controls

A B
buttons 1–2
C D E F
buttons 3–6 (only for Superior / Perfect Soldiers)
Select
coin · hold 1 s for the in-game menu
Select + A
screenshot
Select + B
lazy finger (auto fire)
Select + C
status line
Select + D
credits

07 Support

m92-pi is free. If you enjoy it, you can buy me a crema caffè :)

Buy me a coffee

Siblings: s16-pi · neo-pi · nes-pi