1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! SameSuite GB test ROM integration tests.
//!
//! SameSuite tests signal completion by executing `LD B,B` (opcode 0x40).
//! Pass: B=3, C=5, D=8, E=13, H=21, L=34 (Fibonacci sequence).
//! Fail: any register deviates from the pattern above.
//!
//! ROMs are located at:
//! `roms/gb/automated_tests/SameSuite/ppu/`
//!
//! ## CGB PPU Test Status
//!
//! These tests target CGB-specific PPU behavior and require a fully functional
//! CGB PPU implementation. Currently some tests are ignored due to incomplete
//! CGB PPU emulation (particularly BGPI/BGPD register behavior).
use ;
use crateCgbModel;
/// Generous per-test M-cycle timeout used as a safety budget to avoid hangs.
const SAMESUITE_CYCLE_LIMIT: u64 = 150_000_000;
// ============================================================================
// Helper macro to produce a single-line pass assertion.
// ============================================================================
// ============================================================================
// SameSuite PPU tests
// ============================================================================
const BASE: &str = "roms/gb/automated_tests/SameSuite/ppu";