Skip to content

Instantly share code, notes, and snippets.

static INPUT_PORTS_START( downhill )
PORT_START("P1")
PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("P2")
PORT_BIT( 0xfff, IP_ACTIVE_LOW, IPT_UNKNOWN ) // 0x100 = freeze?
PORT_START("IN01")
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON3) // brake left
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_START1) // start
@rb6502
rb6502 / ncr5390.cpp.diff
Created January 6, 2023 01:42
ncr5390 WIP changes
diff --git a/src/devices/machine/ncr5390.cpp b/src/devices/machine/ncr5390.cpp
index 7a52d237982..76a135e20b5 100644
--- a/src/devices/machine/ncr5390.cpp
+++ b/src/devices/machine/ncr5390.cpp
@@ -421,7 +421,10 @@ void ncr5390_device::step(bool timeout)
break;
if((state & STATE_MASK) != INIT_XFR_RECV_PAD)
+ {
fifo_push(scsi_bus->data_r());
@rb6502
rb6502 / bgfx.diff
Created May 19, 2023 23:40
Experimental MAME patch for macOS 10.14/10.15
diff --git a/3rdparty/bgfx/src/renderer_mtl.mm b/3rdparty/bgfx/src/renderer_mtl.mm
index 2317c16d6b5..7d97f1c5d78 100644
--- a/3rdparty/bgfx/src/renderer_mtl.mm
+++ b/3rdparty/bgfx/src/renderer_mtl.mm
@@ -14,6 +14,12 @@
# include <Cocoa/Cocoa.h>
#endif
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 110000
+#undef OLD_MACOS
diff --git a/3rdparty/bgfx/src/renderer_mtl.mm b/3rdparty/bgfx/src/renderer_mtl.mm
index 2317c16d6b5..27dccdbd7bc 100644
--- a/3rdparty/bgfx/src/renderer_mtl.mm
+++ b/3rdparty/bgfx/src/renderer_mtl.mm
@@ -14,6 +14,12 @@
# include <Cocoa/Cocoa.h>
#endif
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 110000
+#undef OLD_MACOS
diff --git a/3rdparty/bgfx/src/renderer_mtl.mm b/3rdparty/bgfx/src/renderer_mtl.mm
index 2317c16d6b5..db81e227290 100644
--- a/3rdparty/bgfx/src/renderer_mtl.mm
+++ b/3rdparty/bgfx/src/renderer_mtl.mm
@@ -14,6 +14,12 @@
# include <Cocoa/Cocoa.h>
#endif
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 110000
+#undef OLD_MACOS
diff --git a/3rdparty/bgfx/src/renderer_mtl.mm b/3rdparty/bgfx/src/renderer_mtl.mm
index 2317c16d6b5..1157c233f40 100644
--- a/3rdparty/bgfx/src/renderer_mtl.mm
+++ b/3rdparty/bgfx/src/renderer_mtl.mm
@@ -14,6 +14,12 @@
# include <Cocoa/Cocoa.h>
#endif
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 110000
+#undef OLD_MACOS
@rb6502
rb6502 / sh_core_audit.md
Created August 6, 2026 17:04
MAME SH audit report

MAME SuperH core audit — instruction semantics (results & flags)

Date: 2026-08-06 Scope: src/devices/cpu/sh/ — interpreter and DRC, SH-1/SH-2/SH-3/SH-4. Only instruction behaviour (computed results, T/Q/M/S flags, register writeback) was in scope for this pass. Exceptions, MMU, TLB, interrupt delivery, and peripherals were deliberately not audited except where they change an instruction's result.

References used (all from /Volumes/data/EmuDocs/SH/):

  • sh2.pdf — SH-1/SH-2/SH-DSP Software Manual rev 5.00
@rb6502
rb6502 / nexus3d.cpp
Created September 1, 2026 11:37
Generated nexus3d driver
// license:BSD-3-Clause
// copyright-holders:Scott Stone
/************************************************************************
NEXUS 3D Version 1.0 Board from Interpark
Games on this platform:
Arcana Heart FULL, Examu Inc, 2006
@rb6502
rb6502 / README.md
Created September 6, 2026 01:14
System Y2 research report from GPT-6

System Board Y2 ROM research

Research date: 2026-09-06 UTC. No MAME source or original ROM was modified.

Result

The NAND scrambling is recovered for kof2002um, kof2002umj, and higurashi. The decoded software is little-endian MIPS, targeting NEC VR5500 / MIPS IV, not SH-4. Both the first-stage loader and the actual game executables establish this independently.

The graphics software exposes a Yatagarasu-specific rendering / geometry / video-output interface. Its register layout and command construction are different from Dreamcast's PVR2 interface. This research does not establish the provenance of every underlying graphics IP block; it does establish that using the Naomi/Atomiswave machine model as the starting assumption would be misleading.