mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2025-08-15 10:27:46 +00:00
Remove _END from opcode.
Don't set cls in outer module scope
This commit is contained in:
@@ -25,9 +25,6 @@ class Opcode:
|
|||||||
# Offset of start byte in decoder opcode
|
# Offset of start byte in decoder opcode
|
||||||
_START = None # type: int
|
_START = None # type: int
|
||||||
|
|
||||||
# Offset of last byte in decoder opcode
|
|
||||||
_END = None # type: int
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "Opcode(%s)" % self.COMMAND.name
|
return "Opcode(%s)" % self.COMMAND.name
|
||||||
|
|
||||||
@@ -107,14 +104,14 @@ TICK_OPCODES = {}
|
|||||||
|
|
||||||
for _tick in range(4, 68, 2):
|
for _tick in range(4, 68, 2):
|
||||||
for _page in range(32, 64):
|
for _page in range(32, 64):
|
||||||
cls = type(
|
_cls = type(
|
||||||
"Tick%dPage%d" % (_tick, _page),
|
"Tick%dPage%d" % (_tick, _page),
|
||||||
(BaseTick,),
|
(BaseTick,),
|
||||||
{
|
{
|
||||||
"COMMAND": OpcodeCommand["TICK_%d_PAGE_%d" % (_tick, _page)]
|
"COMMAND": OpcodeCommand["TICK_%d_PAGE_%d" % (_tick, _page)]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
TICK_OPCODES[(_tick, _page)] = cls
|
TICK_OPCODES[(_tick, _page)] = _cls
|
||||||
|
|
||||||
|
|
||||||
def _parse_symbol_table():
|
def _parse_symbol_table():
|
||||||
|
Reference in New Issue
Block a user