summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/snk/hng64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/snk/hng64.cpp')
-rw-r--r--src/mame/snk/hng64.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mame/snk/hng64.cpp b/src/mame/snk/hng64.cpp
index f2a1e712aa1..90b7d88f344 100644
--- a/src/mame/snk/hng64.cpp
+++ b/src/mame/snk/hng64.cpp
@@ -2185,6 +2185,17 @@ void hng64_state::machine_start()
init_io();
+ // Decode the samples
+ u8 *samples = memregion("l7a1045")->base();
+ for (u32 i = 0; i != memregion("l7a1045")->bytes(); i++)
+ {
+ u8 r = samples[i];
+ r = util::bitswap<8>(r, 7, 1, 0, 6, 5, 4, 3, 2);
+ if (!(r & 0x80))
+ r ^= 0x60;
+ samples[i] = r;
+ }
+
save_pointer(NAME(m_com_virtual_mem), 0x100000);
save_pointer(NAME(m_com_op_base), 0x10000);
save_pointer(NAME(m_soundram), 0x200000 / 2);