FYLKUIC7ZYSQ45O6Y2VV3FGS374JDS5Z6I2BZUXAKVGIBW3TTPEQC
FDXF3GQNDC2QFZDM55EG4HLP74ZF5T6XGCO2L7ELN2WIIZEB5PUAC
use log::error;
use log::{error, info};
pub fn next(&mut self) -> &mut GbCore<'rom> {
pub fn inc_pc(&mut self) -> &mut GbCore<'rom> {
pub fn test(self, x: i32) {
pub fn test(&mut self) { let mut counter = 1; loop { let op = self.fetch_op(); info!("Op {}: {:#?}", counter, op); self.inc_pc(); counter += 1; }
pub fn test(&mut self) {
let mut counter = 1;
loop {
let op = self.fetch_op();
info!("Op {}: {:#?}", counter, op);
self.inc_pc();
counter += 1;
}
log::error!("Oh dear, x is '{}'", x);
for i in 1..100 { println!("Op {}: {:#X?}", i, x.fetch_op()); x.next(); }
for i in 1..100 {
println!("Op {}: {:#X?}", i, x.fetch_op());
x.next();
x.test();
x.test(13);