bugfix: inc r16 should not decrement r16

This commit is contained in:
John 2024-06-25 21:20:50 -05:00
parent dbc9552908
commit dff0df87e9

View File

@ -323,7 +323,7 @@ mod instructions {
Ok(())
}
pub fn inc16(&mut self, reg: R16) -> IResult {
self[reg] -= 1;
self[reg] += 1;
Ok(())
}
pub fn dec16(&mut self, reg: R16) -> IResult {