diff --git a/src/cpu.rs b/src/cpu.rs index a0e7869..e3db379 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -930,12 +930,7 @@ impl CPU { _ => self[r8].0 = data, } } - pub fn get_r16(&self, r16: R16) -> u16 { - self[r16].0 - } - pub fn set_r16(&mut self, r16: R16, data: u16) { - self[r16].0 = data; - } + pub fn get_r16ind_addr(&mut self, r16: R16Indirect) -> u16 { match r16 { R16Indirect::BC => self.bc.wide().0,