mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-06-02 20:18:20 -04:00
more careful updating of partial disassembly
disassembly.ExecutedEntry() only adds next address to disassembly if the CPU result is at an instruction boundary (the Final field in the result type)
This commit is contained in:
parent
f60c88fe55
commit
bb556d805f
|
@ -258,7 +258,7 @@ func (dsm *Disassembly) ExecutedEntry(bank mapper.BankInfo, result execution.Res
|
|||
// bless next entry in case it was missed by the original decoding. there's
|
||||
// no guarantee that the bank for the next address will be the same as the
|
||||
// current bank, so we have to call the GetBank() function.
|
||||
if checkNextAddr {
|
||||
if checkNextAddr && result.Final {
|
||||
bank = dsm.vcs.Mem.Cart.GetBank(nextAddr)
|
||||
idx := nextAddr & memorymap.CartridgeBits
|
||||
ne := dsm.disasmEntries.Entries[bank.Number][idx]
|
||||
|
|
Loading…
Reference in a new issue