def __init__(self, proj): """ Create the main Z80 Disassembler, Creates two OpcodeDispatchers (main and cb) Main are all 1-byte opcodes and cb are the 2 byte opcodes Initialises cache and next_addr_cache, although not sure the difference between the 2 caches yet :param proj: """ self.proj = proj self.main = OpcodeDispatcher(main_ops.splitlines()) self.cb = OpcodeDispatcher(cb_ops.splitlines()) self.cache = dict() self.next_addr_cache = dict()
def __init__(self, proj): self.proj = proj self.main = OpcodeDispatcher(main_ops.splitlines()) self.cb = OpcodeDispatcher(cb_ops.splitlines()) self.cache = dict() self.next_addr_cache = dict()