Skip to content

Commit

Permalink
cpuの状態的にはhello worldがちゃんとうごいている
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaowl committed Aug 18, 2019
1 parent 862946a commit ca93ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nes/cpu_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl Cpu {
/// jump
/// `dst_addr` - Addressing Absolute/Indirectで指定されたJump先Address
pub fn inst_jmp(&mut self, dst_addr: u16) {
self.pc = dst_addr + 1;
self.pc = dst_addr; // JMPはどうやら1個前に戻すらしい
}
/// jump to subroutine
/// `dst_addr` - Addressing Absoluteで指定されたJump先Address
Expand Down

0 comments on commit ca93ca4

Please sign in to comment.