mirror of
https://github.com/mnaberez/py65.git
synced 2024-06-10 17:29:34 +00:00
Fix asm/dasm bugs
This commit is contained in:
parent
add9d783f8
commit
18859c908d
|
@ -167,7 +167,7 @@ class MPU(mpu6502.MPU):
|
||||||
def inst_0x5a(self):
|
def inst_0x5a(self):
|
||||||
self.stPush(self.y)
|
self.stPush(self.y)
|
||||||
|
|
||||||
@instruction(name="STZ", mode="imp", cycles=3)
|
@instruction(name="STZ", mode="zpg", cycles=3)
|
||||||
def inst_0x64(self):
|
def inst_0x64(self):
|
||||||
self.opSTZ(self.ZeroPageAddr)
|
self.opSTZ(self.ZeroPageAddr)
|
||||||
self.pc += 1
|
self.pc += 1
|
||||||
|
|
|
@ -102,8 +102,8 @@ class Disassembler:
|
||||||
elif addressing == 'zpi':
|
elif addressing == 'zpi':
|
||||||
zp_address = self._mpu.ByteAt(pc + 1)
|
zp_address = self._mpu.ByteAt(pc + 1)
|
||||||
address_or_label = self._address_parser.label_for(
|
address_or_label = self._address_parser.label_for(
|
||||||
zp_address, '($' + self.byteFmt % zp_address + ')')
|
zp_address, '$' + self.byteFmt % zp_address)
|
||||||
disasm += ' %s' % address_or_label
|
disasm += ' (%s)' % address_or_label
|
||||||
length = 2
|
length = 2
|
||||||
|
|
||||||
elif addressing == 'zpg':
|
elif addressing == 'zpg':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user