Skip to content

Commit

Permalink
expand already implemented ld_d16_u16
Browse files Browse the repository at this point in the history
  • Loading branch information
pcasaretto committed Apr 7, 2024
1 parent 7feea04 commit fb27d4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/instructions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ use super::*;
pub fn from_byte(byte: u8) -> Box<dyn Fn(&mut CPU)> {
match byte {
0x00 => Box::new(nop::nop()),
0x01 => Box::new(ld::ld_d16_u16(Register16bTarget::BC)),
0x11 => Box::new(ld::ld_d16_u16(Register16bTarget::DE)),
0x21 => Box::new(ld::ld_d16_u16(Register16bTarget::HL)),
0x33 => Box::new(inc::inc_sp()),
0x40 => Box::new(ld::ld_r_r(RegisterTarget::B, RegisterTarget::B)),
Expand Down

0 comments on commit fb27d4d

Please sign in to comment.