Skip to content

Commit

Permalink
Color register
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Nov 14, 2023
1 parent 603efe7 commit 38a514b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,20 @@ impl Registers {
sp: 0xFFFE
}
},
_ => panic!("Mode not yet supported!")
GBMode::Color => {
Registers {
a: 0x11,
f: (Flags::Z).bits(),
b: 0x00,
c: 0x00,
d: 0xFF,
e: 0x56,
h: 0x00,
l: 0x0D,
pc: 0x0100,
sp: 0xFFFE
}
}
}
}
}

0 comments on commit 38a514b

Please sign in to comment.