← All cores
Arcade-BallySente (ppriest)
Cites hardware documentation that MAME's driver does not — 1
Cites MAME source — 83
- BallySente.sv:36 The 6VB's six voices, mono (sente6vb.cpp routes all six to one speaker).
- BallySente.sv:176 MAME's default keys, ORed into the pads so every reader of joystick_0/1 sees them.
- rtl/acia6850.sv:6 It is transcribed rather than written from the datasheet for the same reason as the 8253 (rtl/sound/pit8253.sv): MAME is the reference, and the main program's timing depends on details the datasheet leaves open.
- rtl/acia6850.sv:10 cshift sends 0xE0 at boot and polls status until the 6VB answers, which it does when its calibration ends (frame 560 in MAME); after that it streams commands one character time apart -- ~400 CPU cycles, 10 bits x 16 / 500 kHz -- pacing itse
- rtl/acia6850.sv:16 THE PROTOCOL cshift uses, from MAME's trace.
- rtl/acia6850.sv:18 Streaming after that is polled, so status reads return 0x02 -- TDRE set, IRQ clear -- on every one of MAME's 479,062 polls.
- rtl/acia6850.sv:27 The IRQ output is delayed one clk_sys cycle, standing in for MAME's `scheduler().synchronize()` in output_irq(): the status IRQ bit and the pin both change after the access that caused them, not during it.
- rtl/acia6850.sv:78 MAME's m_irq: 1 = inactive
- rtl/acia6850.sv:267 MAME shifts the parity bit in too, as bit 8 of an int, and truncates it away in the 8-bit m_rdr.
- rtl/acia6850.sv:309 -------------------------------------------------------- irq One cycle late, as MAME's synchronize() is: the status bit and the pin follow the access that changed them.
- rtl/adc.sv:3 The main board's ADC, as balsente_m.cpp models it (adc_select_w, adc_finished, adc_data_r).
- rtl/adc.sv:6 A write to 0x9000-0x9007 selects a channel and starts a conversion that ends 50 us later -- a later select restarts it (MAME re-arms its timer; Mini Golf depends on the delay).
- rtl/adc.sv:11 With `raw` (MAME's shift of 32, Stompin' and Shrike) the channel reads its port directly; `raw_ob` makes that port offset binary, 0x80 at rest, as Shrike Avenger's stick is (MAME AD_STICK with a default of 0x80), where the ports here are si
- rtl/analog_inputs.sv:3 The four analog ports the ADC converts (MAME's AN0-AN3), made from MiSTer's mouse, analog sticks and spinners and latched once a frame at the start of vblank, as balsente_m.cpp update_analog_inputs() caches them.
- rtl/analog_inputs.sv:9 [7] reverse (MAME's PORT_REVERSE): the value is negated [6] half: MAME sensitivity 50 rather than 100
- rtl/analog_inputs.sv:17 Trackballs and dials are relative (MAME's PORT_RESET): the movement since the last frame, clamped to a signed byte.
- rtl/analog_inputs.sv:18 Player 1's comes from the mouse; any player's also from its analog stick as a rate, and from its d-pad as MAME's default mapping does, down increasing Y, but at 10 a frame where MAME's PORT_KEYDELTA is 20: 20 was reported too fast on hardwa
- rtl/analog_inputs.sv:22 Sticks are absolute, the position as a signed byte, plus a position the d-pad moves as MAME's keys move an AD_STICK: PORT_KEYDELTA(20) a frame while held, and back toward centre by the same 20 (its centre delta) once released.
- rtl/analog_inputs.sv:26 MAME's screen Y grows downward and a PS/2 mouse's grows upward, so the mouse's Y is negated.
- rtl/balsente_core.sv:33 rtl/main_bus.sv; 0 only to compare with MAME
- rtl/balsente_core.sv:120 Shrike Avenger's sprite bank, delayed as MAME's shrike_sprite_select_w() delays it (the palette bank's rule, rtl/video/video.sv): a write during raster line v shows from line v + 16.
- rtl/balsente_core.sv:165 A bit in configuration bytes 8 (IN0) or 9 (IN1) is MAME's PORT_TOGGLE, Stocker's gear shift: each press flips it, and it reads pressed (low) while on.
- rtl/balsente_core.sv:167 It starts off, as MAME's does.
- rtl/balsente_core.sv:197 Everything else is released on the clock where the raster reaches the point reset puts it at -- line 256, pixel 0, the start of a pixel -- so the machine starts in the state sim/board_tb and MAME start in.
- rtl/balsente_core.sv:293 MAME's level peaks near -20 dBFS in every game recorded (debug/*-snd), under a MiSTer's noise floor; x8, saturating (docs/HACKS.md).
- rtl/game_board.sv:24 See rtl/main_bus.sv: 1 floats an undriven read as the board does, 0 is MAME's 0x00.
- rtl/game_board.sv:25 Passed through so a bench can compare against MAME.
- rtl/game_board.sv:62 The analog ports the ADC converts (rtl/analog_inputs.sv), and how the game reads them (MAME's config_shooter_adc: a shift, or raw)
- rtl/game_board.sv:69 teamht's input groups; Grudge Match's three wheel positions; Night Stocker's gun position (MAME's FAKEX/FAKEY, 0x80 at the centre)
- rtl/game_board.sv:162 A blank X2212 reads 0xF in every nibble (MAME x2212.cpp nvram_default).
- rtl/game_board.sv:197 Line 0 (once, after reset) presents 0: MAME shifts by -1 there.
- rtl/game_board.sv:257 -------------------------------------------------------------- ACIA Clocked by the 6VB's 500 kHz output, which is already the inverse of that board's own ACIA clock (sente6vb.cpp uart_clock_w).
- rtl/grudge_steering.sv:3 Grudge Match's steering register at 0x9400, as balsente_m.cpp models it (update_grudge_steering, grudge_steering_r).
- rtl/irq_timer.sv:5 balsente_m.cpp `interrupt_timer()`.
- rtl/lightgun.sv:3 Night Stocker's gun: MAME's FAKEX/FAKEY ports (0..255, 0x80 at the centre), which the board reads two bits at a time (game_board.sv), and a crosshair where the gun points, since the monitor has none.
- rtl/lightgun.sv:16 MAME's crosshair instead spreads 0-255 over the 240 visible rows, which puts it 16 lines low.
- rtl/main_bus.sv:6 From balsente.cpp `cpu1_base_map` and balsente_m.cpp.
- rtl/main_bus.sv:23 Some cartridges change the map (`cfg_variant`, balsente.cpp cpu1_*_map): 1 teamht 9000-9007 w selects an input group, 9404 r reads it; no ADC 2 grudge 9400 r is the steering register, not the ADC 3 spiker 9f80-9f8f rw the pixel-exp
- rtl/main_bus.sv:44 0 is MAME, which returns its unmapped value of 0x00 for both.
- rtl/main_bus.sv:44 Kept as a parameter rather than deleted because the bus-trace diff against MAME is the only verification this board has, and an open bus diverges from it on every NOVRAM read.
- rtl/main_bus.sv:177 ------------------------------------------------------------ variants teamht_multiplex_select_w: offsets 4-7 load an input group into the latch 9404 reads; 0-3 leave it (MAME logs them as unhandled).
- rtl/main_bus.sv:248 ------------------------------------------------- cartridge mapping balsente.cpp expand_roms(): bank pointers, not a ROM transform.
- rtl/main_bus.sv:275 -------------------------------------------------- hardware random balsente_m.cpp poly17_init() and random_num_r().
- rtl/main_bus.sv:279 MAME indexes it by `total_cycles * 12.5` -- 12 steps on an even CPU cycle and 13 on an odd one -- because it computes (cc<<3)+(cc<<2)+(cc>>1).
- rtl/main_bus.sv:283 Reproduced anyway, because MAME is the reference and a different value desynchronises a bus trace immediately; docs/MAME_KLUDGES.md has the entry.
- rtl/main_bus.sv:298 computed at 24 bits then masked to 17, as MAME's & POLY17_SIZE does
- rtl/mame_keys.sv:1 MAME's default keys (src/emu/inpttype.ipp) in hps_io's joystick layout, to OR into joystick_0/1: right, left, down, up at bits 0-3, buttons 1-6 at 4-9, Start, Coin, Pause, Service at the J1 line's own positions (parameters).
- rtl/mame_keys.sv:7 P1 arrows, LCtrl LAlt Space LShift Z X, 1 start, 5 coin P2 R F D G, A S Q W E (MAME gives P2 no sixth key), 2 start, 6 coin F2 service (test) switch, 9 and 0 service coins 1 and 2, P pause
- rtl/mame_keys.sv:24 MAME's Service 1, 2: wire to the board's SERVICE1/2 bits, if any
- rtl/memory/dpram_tdp.sv:14 A write on both ports to one address in one clock is undefined, as on the M10K; the two CPUs here do not arbitrate, as MAME does not.
- rtl/shrike_board.sv:3 Shrike Avenger's second board: a 68000 with its own 16 KB program, 4 KB of RAM shared with the 6809, and sixteen I/O words, as MAME models it (balsente.cpp shrike68k_map and cpu1_shrike_map, balsente_m.cpp shrike_*).
- rtl/shrike_board.sv:21 Two exceptions (shrike_shared_6809_r/_w): 9E06 reads 0, MAME's "motors OK" until the motion base is modelled -- MAME has none -- and a write to 9E01 also selects the sprite bank (shrike_sprite_select_w).
- rtl/shrike_board.sv:24 MAME computes that bank as (data & 0x80 >> 7) ^ 1, which C parses as (data & 1) ^ 1: data bit 0 clear selects the upper 64 KB.
- rtl/shrike_board.sv:28 Clock: MAME runs the 68000 at 8 MHz.
- rtl/video/sprite_engine.sv:12 A sprite pixel is the HIGH nibble of a palette index and the background supplies the low nibble, and each sprite reads that low nibble from the BACKGROUND rather than from an earlier sprite's result (balsente_v.cpp: `old` points into the ex
- rtl/video/sprite_engine.sv:29 MAME walks ypos from `sprite[2] + 17 + VBEND` -- which reaches 288 and is NOT masked on the first iteration -- masking only after each increment.
- rtl/video/sprite_engine.sv:123 9 bits, because MAME keeps currx as an int and clips at 256: a sprite at x=252 loses its right-hand pixels rather than wrapping to the left edge.
- rtl/video/video.sv:43 0 is the natural one and is what sim/video_tb mirrors; the board passes 256 so its raster is in the same phase as MAME's screen, which starts at vblank.
- rtl/video/video.sv:124 MAME's palette_select_w() redraws up to vpos() - 1 + VBEND before a bank change, and vpos() is already absolute, so a write during raster line v shows from line v + 16 on, a whole line at a time (docs/MAME_KLUDGES.md).
- rtl/video/video_timing.sv:7 Geometry from balsente.h, through MAME's set_raw():
- rtl/video/video_timing.sv:16 MAME's set_raw() carries no sync position -- it models blanking only -- and there is no schematic here.
- rtl/video/video_timing.sv:35 MAME starts a screen at VBLANK START, so a bench comparing against its trace must too or every VBLANK the CPU reads is a whole frame out of phase.
- README.md:3 A MiSTer FPGA core for Bally/Sente's SAC-I arcade hardware (MAME's `bally/balsente.cpp`), built with Quartus Prime 17.0.2 Lite for the DE10-nano.
- README.md:50 MAME lists 41 sets; 39 are on SAC-I hardware and in scope.
- README.md:83 | MAME description | Why |
- README.md:85 | Trivial Pursuit (Volumen IV / Volumen V, Spanish, Maibesa hardware) (`triviaes4`, `triviaes5`) | different Maibesa hardware (MC6845 CRTC, Z80 with 2×AY8910 an
- README.md:95 | CEM3394 ×6 | synthesiser voices: oscillator, 4-pole filter, mixer, VCA | written here from MAME's numerical model, in fixed point; one oscillator, one filter
- README.md:96 | MM5837 | noise source into every voice | written here, from MAME's `mm5837` |
- README.md:98 | main board logic | address decode, bank mapper, palette bank, random number source, interrupt timer | written here from `balsente.cpp` and `balsente_m.cpp` |
- README.md:99 | video | 4bpp bitmap and a line-buffered sprite engine, racing the beam as the board does | written here from `balsente_v.cpp`, checked against a beam-accurate
- README.md:115 The core models the chips from MAME's numerical CEM3394 model, in fixed point at 96 kHz.
- README.md:127 The numbers are MAME's `set_raw()` for the driver; there is no PCB measurement.
- README.md:253 MAME plays that calibration (`docs/MAME_KLUDGES.md`).
- README.md:310 MAME is the accuracy reference, with its own acknowledged uncertainties noted where they matter.
- README.md:313 **Main CPU:** 400,000 bus cycles of `sentetst` from reset against MAME's trace; all 52,232 writes identical in address, data and order.
- README.md:315 **Sound CPU:** 1,200,000 bus accesses against MAME's trace; all reads and writes identical in address and data (one instruction orders its two writes differentl
- README.md:321 **Video:** six MAME beam captures against a beam-accurate model, 0 differing pixels each.
- README.md:324 **Sound calibration:** the 6VB's boot calibration against MAME's I/O trace; the voice, mode, control voltage and count match on every measurement.
- README.md:326 **Sound:** the fixed-point specification against MAME's Chicken Shift recording, 10 s in-game: level +0.01 dB, worst octave 0.20 dB, envelope correlation +0.986
- README.md:328 The RTL against that specification, driven by MAME's recorded 6VB writes: 1,920,000 samples, 698,696 writes, 0 mismatches.
- README.md:338 The **MAMEdev team** — Aaron Giles for `balsente.cpp` and the CEM3394, m1macrophage for the CEM3394's current model and the `va_*` primitives it is built from —
- README.md:359 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:360 | `roms` | your own MAME sets (gitignored, never committed) |
Says it matches, follows or was checked against MAME — 4
- rtl/grudge_wheels.sv:3 Grudge Match's three steering wheels as positions (MAME's AN0-AN2 dials, not PORT_RESET), for grudge_steering.sv, which reports only which way each moved between interrupts.
- README.md:91 | MC6809E @ 1.25 MHz | main CPU | vendored: Greg Miller's `mc6809i`, jotego's clock-enable fork; checked against MAME's bus trace |
- README.md:92 | Z80 @ 4 MHz | 6VB sound CPU | vendored: MiSTer-devel T80, unchanged; checked against MAME's bus trace |
- README.md:119 `scripts/sente6vb_audio.py` is the integer specification: it matches MAME's recorded Chicken Shift audio in level to 0.01 dB and in every octave band to 0.2 dB,
Says it was translated, ported or taken from MAME — 4
- rtl/acia6850.sv:3 Motorola 6850 ACIA, transcribed from MAME's devices/machine/6850acia.cpp.
- README.md:93 | MC6850 ACIA ×2 | the serial link between the boards | written here, transcribed from MAME's `6850acia.cpp` |
- README.md:94 | 8253 PIT | 6VB timing and the oscillator measurement | written here, transcribed from MAME's `pit8253.cpp`; modes 0 and 1 only (all the boot uses) |
- README.md:257 `docs/MAME_KLUDGES.md` lists what is taken from MAME as behaviour and what is known not to be right.
Keeps a MAME approximation — 1
- README.md:121 The mix is raised 18 dB over MAME's level, which is too quiet for a MiSTer (`docs/HACKS.md`).
Shares text with the MAME driver without saying so — 4