1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-07-13 09:29:08 +00:00

Moved MPU models into py65.devices.

This commit is contained in:
Mike Naberezny 2009-04-07 17:48:57 -07:00
parent ebe02c2dfa
commit 10228a69b0
8 changed files with 11 additions and 9 deletions

View File

@ -0,0 +1 @@
# this is a package

View File

@ -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
class MPU(NMOS6502):

View File

@ -6,7 +6,7 @@ import re
import shlex
import asyncore
import sys
from py65.mpu6502 import MPU
from py65.devices.mpu6502 import MPU
from py65.disassembler import Disassembler
from py65.assembler import Assembler
from py65.utils.addressing import AddressParser

View File

@ -0,0 +1 @@
# this is a package

View File

@ -1,6 +1,6 @@
import unittest
import sys
import py65.mpu6502
import py65.devices.mpu6502
class Common6502Tests:
"""Tests common to 6502-based microprocessors"""
@ -4593,7 +4593,7 @@ class Common6502Tests:
class MPUTests(unittest.TestCase, Common6502Tests):
""" NMOS 6502 (py65.mpu6502) tests """
""" NMOS 6502 tests """
def test_repr(self):
mpu = self._make_mpu()
@ -4606,7 +4606,7 @@ class MPUTests(unittest.TestCase, Common6502Tests):
self.assertRaises(NotImplementedError, mpu.step)
def _get_target_class(self):
return py65.mpu6502.MPU
return py65.devices.mpu6502.MPU
def test_suite():

View File

@ -1,7 +1,7 @@
import unittest
import sys
import py65.mpu65c02
from py65.tests.test_mpu6502 import Common6502Tests
import py65.devices.mpu65c02
from py65.tests.devices.test_mpu6502 import Common6502Tests
class MPUTests(unittest.TestCase, Common6502Tests):
@ -24,7 +24,7 @@ class MPUTests(unittest.TestCase, Common6502Tests):
# Test Helpers
def _get_target_class(self):
return py65.mpu65c02.MPU
return py65.devices.mpu65c02.MPU
def test_suite():

View File

@ -1,6 +1,6 @@
import unittest
import sys
from py65.mpu6502 import MPU
from py65.devices.mpu6502 import MPU
from py65.disassembler import Disassembler
from py65.utils.addressing import AddressParser