Skip to content

Commit

Permalink
this project got a lot larger than i expected
Browse files Browse the repository at this point in the history
  • Loading branch information
xubiod committed Mar 6, 2024
1 parent d5356f6 commit c19ba9a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions cpu/set_jumpsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,5 @@ func (c *Core) RTI____i() {

// Jump - Indirect Absolute Indexed
func (c *Core) JMP__Iax(addrIndirect uint16) {
panic("unimplemented")
// var lsb, msb, page, within byte
// var addrL, addrM uint16

// if c.Features.NMOSAbsoluteIndirectBug {
// page = byte(addrIndirect & 0xFF00 >> 8)
// within = byte(addrIndirect & 0x00FF)

// addrL = (uint16(page) << 8) | uint16(within)
// addrM = (uint16(page) << 8) | ((uint16(within) + 1) & 0xFF)

// lsb = c.Memory[addrL]
// msb = c.Memory[addrM]
// } else {
// lsb = c.Memory[addrIndirect]
// msb = c.Memory[addrIndirect+1]
// }

// c.PC = (uint16(msb) << 8) | uint16(lsb)
c.JMP___Ia(addrIndirect + uint16(c.X))
}

0 comments on commit c19ba9a

Please sign in to comment.