Worked it out. Just get a decent text editor (e.g. notepad++) and copy an existing entry or use the one below. Don't forget to make a backup of your mame.dat first!
Basically I'm using this to add games into my MAMEWah MAME list but running them via another emulator.
Minimum Info (not actually sure about whether this
is the minimum but it suits my purposes - I'll experiment with less later.)
game (
name cobra
sourcefile cobra.c
description "Cobra Command - Daphne"
year 1984
manufacturer "Data East"
history "\nSpace Ace (c) 1984 Data East. \n"
rom ( name 82s126.3m size 256 crc 77245b66 sha1 0c4d0bee858b97632411c440bea6948a74759746 region sound1 offs 100 )
chip ( type cpu name "Z80" clock 3072000 )
chip ( type audio name "Laserdisc" clock 96000 )
video ( screen raster orientation vertical x 224 y 288 aspectx 3 aspecty 4 freq 60.606060 )
sound ( channels 1 )
input ( players 2 control joy4way buttons 1 coins 2 )
dipswitch ( name "Fake Data" entry "Disabled" default "Disabled" entry "Enabled Always" entry "Enabled with Button" )
driver ( status good emulation good color good sound good graphic good palettesize 32 )
)