mirror of
https://github.com/mnaberez/py65.git
synced 2024-12-08 04:52:00 +00:00
Add test for disassembling $64 on 65C02. Refs #80
This commit is contained in:
parent
fa4cf35a34
commit
cf03901114
@ -19,6 +19,9 @@
|
||||
|
||||
- The ``py65`` package is no longer a namespace package.
|
||||
|
||||
- Fixed assembly and disassembly of 65C02 instruction $64 (``STZ $12``).
|
||||
Patch by Patrick Surry.
|
||||
|
||||
1.1.0 (2018-07-01)
|
||||
------------------
|
||||
|
||||
|
@ -536,6 +536,12 @@ class DisassemblerTests(unittest.TestCase):
|
||||
self.assertEqual(1, length)
|
||||
self.assertEqual('???', disasm)
|
||||
|
||||
def test_disassembles_64_65c02(self):
|
||||
mpu = MPU65C02()
|
||||
length, disasm = self.disassemble([0x64, 0x12], 0x0000, mpu)
|
||||
self.assertEqual(2, length)
|
||||
self.assertEqual('STZ $12', disasm)
|
||||
|
||||
def test_disassembles_65(self):
|
||||
length, disasm = self.disassemble([0x65, 0x44])
|
||||
self.assertEqual(2, length)
|
||||
|
Loading…
Reference in New Issue
Block a user