Skip to content

Commit

Permalink
Add test for disassembling on 65C02. Refs #80
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Sep 12, 2023
1 parent fa4cf35 commit 7836b65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
------------------

Expand Down
6 changes: 6 additions & 0 deletions py65/tests/test_disassembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,12 @@ def test_disassembles_64(self):
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)
Expand Down

0 comments on commit 7836b65

Please sign in to comment.