mirror of
https://github.com/mnaberez/py65.git
synced 2024-09-14 17:57:56 +00:00
Moved MPU models into py65.devices.
This commit is contained in:
parent
ebe02c2dfa
commit
10228a69b0
1
src/py65/devices/__init__.py
Normal file
1
src/py65/devices/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# this is a package
|
@ -1,4 +1,4 @@
|
|||||||
from py65.mpu6502 import MPU as NMOS6502
|
from py65.devices.mpu6502 import MPU as NMOS6502
|
||||||
from py65.utils.devices import make_instruction_decorator
|
from py65.utils.devices import make_instruction_decorator
|
||||||
|
|
||||||
class MPU(NMOS6502):
|
class MPU(NMOS6502):
|
@ -6,7 +6,7 @@ import re
|
|||||||
import shlex
|
import shlex
|
||||||
import asyncore
|
import asyncore
|
||||||
import sys
|
import sys
|
||||||
from py65.mpu6502 import MPU
|
from py65.devices.mpu6502 import MPU
|
||||||
from py65.disassembler import Disassembler
|
from py65.disassembler import Disassembler
|
||||||
from py65.assembler import Assembler
|
from py65.assembler import Assembler
|
||||||
from py65.utils.addressing import AddressParser
|
from py65.utils.addressing import AddressParser
|
||||||
|
1
src/py65/tests/devices/__init__.py
Normal file
1
src/py65/tests/devices/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# this is a package
|
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
import py65.mpu6502
|
import py65.devices.mpu6502
|
||||||
|
|
||||||
class Common6502Tests:
|
class Common6502Tests:
|
||||||
"""Tests common to 6502-based microprocessors"""
|
"""Tests common to 6502-based microprocessors"""
|
||||||
@ -4593,7 +4593,7 @@ class Common6502Tests:
|
|||||||
|
|
||||||
|
|
||||||
class MPUTests(unittest.TestCase, Common6502Tests):
|
class MPUTests(unittest.TestCase, Common6502Tests):
|
||||||
""" NMOS 6502 (py65.mpu6502) tests """
|
""" NMOS 6502 tests """
|
||||||
|
|
||||||
def test_repr(self):
|
def test_repr(self):
|
||||||
mpu = self._make_mpu()
|
mpu = self._make_mpu()
|
||||||
@ -4606,7 +4606,7 @@ class MPUTests(unittest.TestCase, Common6502Tests):
|
|||||||
self.assertRaises(NotImplementedError, mpu.step)
|
self.assertRaises(NotImplementedError, mpu.step)
|
||||||
|
|
||||||
def _get_target_class(self):
|
def _get_target_class(self):
|
||||||
return py65.mpu6502.MPU
|
return py65.devices.mpu6502.MPU
|
||||||
|
|
||||||
|
|
||||||
def test_suite():
|
def test_suite():
|
@ -1,7 +1,7 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
import py65.mpu65c02
|
import py65.devices.mpu65c02
|
||||||
from py65.tests.test_mpu6502 import Common6502Tests
|
from py65.tests.devices.test_mpu6502 import Common6502Tests
|
||||||
|
|
||||||
|
|
||||||
class MPUTests(unittest.TestCase, Common6502Tests):
|
class MPUTests(unittest.TestCase, Common6502Tests):
|
||||||
@ -24,7 +24,7 @@ class MPUTests(unittest.TestCase, Common6502Tests):
|
|||||||
# Test Helpers
|
# Test Helpers
|
||||||
|
|
||||||
def _get_target_class(self):
|
def _get_target_class(self):
|
||||||
return py65.mpu65c02.MPU
|
return py65.devices.mpu65c02.MPU
|
||||||
|
|
||||||
|
|
||||||
def test_suite():
|
def test_suite():
|
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
from py65.mpu6502 import MPU
|
from py65.devices.mpu6502 import MPU
|
||||||
from py65.disassembler import Disassembler
|
from py65.disassembler import Disassembler
|
||||||
from py65.utils.addressing import AddressParser
|
from py65.utils.addressing import AddressParser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user