feo3boy 0.1.0

Emulator core for the gameboy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Prints out all opcodes in a CSV table for comparison against published opcode tables.

use feo3boy_opcodes::opcode::Opcode;

fn main() {
    for l in 0u8..=0xF {
        print!(",{:#04X}", l);
    }
    println!();
    for h in (0u8..=0xFF).step_by(0x10) {
        print!("{:#04X}", h);
        for l in 0u8..=0xF {
            let opcode = Opcode::decode(h + l);
            print!(",\"{}\"", opcode);
        }
        println!();
    }
}