Skip to content

Commit 3801186

Browse files
committed
Added smbn. Fixed pgm sound.
1 parent 227b67b commit 3801186

5 files changed

Lines changed: 36 additions & 9 deletions

File tree

docs/release/docs/hbnew.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ New Games
4545
- [sfa2g] Street Fighter Alpha 2 Gold (960826, PS2 Backport, 2026-08-27)
4646
- [sfz2d] Street Fighter Zero 2 Dash (960805J, PS2 Backport, 2026-08-27)
4747
- [sfz2da] Street Fighter Zero 2 Dash (960826, English, PS2 Backport, 2026-08-27)
48+
- [smbn] Super Mario Bros. (Neo Geo)
4849
- [wjammers04] Windjammers (Endless Breeze)
4950

5051

src/devices/sound/ics2115.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ bool ics2115_device::ics2115_voice::playing()
433433
int ics2115_device::fill_output(ics2115_voice& voice, sound_stream &stream)
434434
{
435435
bool irq_invalid = false;
436+
//HBMAME fix the sound cutting out
437+
const u16 fine = 1 << (3* (voice.vol.incr >> 6));
438+
voice.vol.add = (voice.vol.incr & 0x3f) << (10 - fine);
439+
#if 0
436440
// measured from hardware
437441
switch (voice.vol.mode & 0x3)
438442
{
@@ -448,7 +452,7 @@ int ics2115_device::fill_output(ics2115_voice& voice, sound_stream &stream)
448452
voice.vol.add = voice.vol.incr << 10;
449453
break;
450454
}
451-
455+
#endif
452456
for (int i = 0; i < stream.samples(); i++)
453457
{
454458
const s32 volacc = (voice.vol.acc >> 14) & 0xfff;

src/hbmame/drivers/neogeohb.cpp

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ NUM GAME YEAR COMPANY TITLE
230230
520 5345 2026 Z-team Midnight Wanderers (Neo-Geo port) 2-level demo
231231
521 5345 2026 Z-team Rick Dangerous DX
232232
522 0539 2026 Sabino Doom Geo (demo)
233-
523 0539 2026 Sabino Free Doom
233+
523 0539 2026 Sabino Free Doom (demo)
234+
524 2026 2026 Sabino Super Mario Bros.
234235
539 0539 2025 Shadow Gangs Shadow Gangs demo
235236
236237
@@ -2991,8 +2992,27 @@ ROM_START( freedoom )
29912992
ROM_END
29922993

29932994

2995+
// 524: Super Mario Bros (not related to 495: New Super Mario Brothers)
2996+
// Bugs: If the screen suddenly goes black, you'll have to restart the game
2997+
ROM_START( smbn )
2998+
ROM_REGION( 0x100000, "maincpu", 0 )
2999+
ROM_LOAD16_WORD_SWAP( "524.p1", 0x000000, 0x100000, CRC(7f2203e2) SHA1(40c8a2aaedfde648729341da967698e46ebeee46) )
3000+
3001+
NEO_SFIX_128K( "524.s1", CRC(d26aa99f) SHA1(9157796d485fe6fcf9d6563e8f0006e0d26d7c8f) )
3002+
3003+
NEO_BIOS_AUDIO_128K( "524.m1", CRC(407e6cb6) SHA1(be0de4793809801436f8d4b1e8c639cb121e1022) )
3004+
3005+
ROM_REGION( 0x80000, "ymsnd:adpcma", 0 )
3006+
ROM_LOAD( "524.v1", 0x000000, 0x80000, CRC(87a8bcb3) SHA1(36005525795ef2c4779eae3955fae722a0abafb7) )
3007+
3008+
ROM_REGION( 0x400000, "sprites", ROMREGION_ERASE00 )
3009+
ROM_LOAD16_BYTE( "524.c1", 0x0000000, 0x200000, CRC(6ca43fd1) SHA1(35aacdc116d93d9ea719660e4d4ab13231944bc3) )
3010+
// c2 rom supplied is all zeroes, so not needed
3011+
ROM_END
3012+
3013+
29943014
// 539: Shadow Gangs demo by Shadow Gangs
2995-
// bugs: screen goes black, sound stops after a few seconds
3015+
// Bugs: If the screen suddenly goes black, you'll have to restart the game
29963016
ROM_START( sgz ) // demo
29973017
ROM_REGION( 0x200000, "maincpu", 0 )
29983018
ROM_LOAD16_WORD_SWAP( "539.p1", 0x000000, 0x100000, CRC(825d0989) SHA1(0b58b061af47df7bfe402fd8207aa7d9f76aecda) )
@@ -4594,6 +4614,7 @@ GAME( 2019, shaman24, shaman16, neogeo_noslot, neogeo, neogeo_state, init
45944614
GAME( 2025, shinobin, neogeo, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "H0ffman", "Shinobi v1.0 (Neo-Geo port)", MACHINE_SUPPORTS_SAVE )
45954615
GAME( 2025, shinobin1, shinobin, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "H0ffman", "Shinobi v1.1 (Neo-Geo port)", MACHINE_SUPPORTS_SAVE )
45964616
GAME( 2025, shinobint, shinobin, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "H0ffman", "Shinobi Test (Neo-Geo port)", MACHINE_SUPPORTS_SAVE )
4617+
GAME( 2026, smbn, neogeo, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "Sabino", "Super Mario Bros.", MACHINE_SUPPORTS_SAVE )
45974618
GAME( 2009, smi, neogeo, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "[Raregame]", "Spiderman (Intro demo)", MACHINE_SUPPORTS_SAVE )
45984619
GAME( 2015, snddemo, neogeo, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "Freem", "Sound-Loop Demo", MACHINE_SUPPORTS_SAVE )
45994620
GAME( 2025, spkick, neogeo, neogeo_noslot, neogeo, neogeo_state, init_neogeo, ROT0, "Kakoeimon", "Super Power Kick (beta 1)", MACHINE_SUPPORTS_SAVE )

src/hbmame/drivers/pgm_hb.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ void pgm_hb::pgm(machine_config &config)
10571057

10581058
ICS2115(config, m_ics, 33.8688_MHz_XTAL);
10591059
m_ics->irq().set_inputline("soundcpu", 0);
1060-
m_ics->add_route(ALL_OUTPUTS, "mono", 2.0); // HBMAME - wind the volume up to 11
1060+
m_ics->add_route(ALL_OUTPUTS, "mono", 0.25);
10611061
}
10621062

10631063
void pgm_hb::init_pgm()
@@ -1105,9 +1105,9 @@ ROM_START( pgemeni )
11051105
ROM_REGION16_LE( 0x1000000, "sprmask", 0 )
11061106
ROM_LOAD( "pgemeni.b1", 0x0000000, 0x400000, CRC(b4127373) SHA1(fa731bedec8ff4c19ec68bd44e8ce0b80ec0c716) )
11071107

1108-
ROM_REGION( 0x600000, "ics", 0 )
1108+
ROM_REGION( 0x600000, "ics", ROMREGION_ERASE00 )
11091109
PGM_AUDIO_BIOS
1110-
ROM_LOAD( "pgmdemo.m1", 0x400000, 0x200000, CRC(8d89877e) SHA1(7d76d48d64d7ac5411d714a4bb83f37e3e5b8df6) )
1110+
// supplied m1 rom is all zeroes, so not needed
11111111
ROM_END
11121112

11131113
ROM_START( pgmdemo )
@@ -1125,9 +1125,9 @@ ROM_START( pgmdemo )
11251125
ROM_REGION16_LE( 0x1000000, "sprmask", 0 )
11261126
ROM_LOAD( "pgmdemo.b1", 0x0000000, 0x400000, CRC(15dd191f) SHA1(a90f63138c9a9bf9215b17a14635518aed7da8a9) )
11271127

1128-
ROM_REGION( 0x600000, "ics", 0 )
1128+
ROM_REGION( 0x600000, "ics", ROMREGION_ERASE00 )
11291129
PGM_AUDIO_BIOS
1130-
ROM_LOAD( "pgmdemo.m1", 0x400000, 0x200000, CRC(8d89877e) SHA1(7d76d48d64d7ac5411d714a4bb83f37e3e5b8df6) )
1130+
// supplied m1 rom is all zeroes, so not needed
11311131
ROM_END
11321132

11331133
ROM_START( pgmfrog )

src/hbmame/hbmame.lst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6389,7 +6389,7 @@ samantha
63896389
santabll
63906390
sbpf
63916391
seafight
6392-
sgz // runs for a few seconds then black screen
6392+
sgz
63936393
shaman16
63946394
//shaman17
63956395
//shaman18
@@ -6402,6 +6402,7 @@ shaman20
64026402
shinobin
64036403
shinobin1
64046404
shinobint
6405+
smbn
64056406
smi
64066407
snddemo
64076408
spkick

0 commit comments

Comments
 (0)