rustzx_core/emulator/
poke.rs1#[derive(Clone, Copy)]
5pub enum PokeAction {
6 Mem { addr: u16, value: u8 },
7}
8
9impl PokeAction {
10 pub const fn mem(addr: u16, value: u8) -> Self {
12 Self::Mem { addr, value }
13 }
14}
15
16pub trait Poke {
17 fn actions(&self) -> &[PokeAction];
19}
20
21pub struct DisableScrollMessageRom48;
23impl Poke for DisableScrollMessageRom48 {
24 fn actions(&self) -> &[PokeAction] {
25 const ACTIONS: &[PokeAction] = &[
28 PokeAction::mem(0x0C88, 0xC3),
29 PokeAction::mem(0x0C89, 0xD2),
30 PokeAction::mem(0x0C8A, 0x0C),
31 ];
32
33 ACTIONS
34 }
35}