Skip to content

Commit

Permalink
uPD77C25: fix masking of NA in JP* opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Jan 21, 2024
1 parent 7bcdc0c commit 6dfc22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snes/cpu_upd77c25/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub struct InstructionJp {

impl InstructionJp {
pub fn next_address(&self) -> u16 {
(((self.opcode & 0x03) << 11) | ((self.opcode >> 2) & 0x3FF)) as u16
((self.opcode >> 2) & 0x7FF) as u16
}

pub fn branch_cond(&self) -> BrchCnd {
Expand Down

0 comments on commit 6dfc22a

Please sign in to comment.