Coverage for MC6809/components/cpu_utils/instruction_base.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.2.1, created at 2023-03-06 19:50 +0100

1#!/usr/bin/env python 

2 

3""" 

4 MC6809 - 6809 CPU emulator in Python 

5 ======================================= 

6 

7 :copyleft: 2013-2014 by the MC6809 team, see AUTHORS for more details. 

8 :license: GNU GPL v3 or above, see LICENSE for more details. 

9""" 

10 

11 

12class InstructionBase: 

13 def __init__(self, cpu, instr_func): 

14 self.cpu = cpu 

15 self.instr_func = instr_func 

16 

17 def special(self, opcode): 

18 # e.g: RESET and PAGE 1/2 

19 return self.instr_func(opcode)