added dependency check for registers and tests

This commit is contained in:
JanLJL
2019-06-12 18:57:53 +02:00
parent 8b377f4db1
commit 75a405e33e
6 changed files with 347 additions and 59 deletions

View File

@@ -1,4 +1,4 @@
#!usr/bin/env python3
#!/usr/bin/env python3
class BaseParser(object):
@@ -43,3 +43,19 @@ class BaseParser(object):
def construct_parser(self):
raise NotImplementedError()
##################
# Helper functions
##################
def process_operand(self, operand):
raise NotImplementedError
def get_full_reg_name(self, register):
raise NotImplementedError
def normalize_imd(self, imd):
raise NotImplementedError
def is_reg_dependend_of(self, reg_a, reg_b):
raise NotImplementedError