๐Ÿ“ฆ wagoodman / mini-x86-disassembler

๐Ÿ“„ decoderStrategy.py ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13class DecoderStrategy:
    # has a reference to the DecoderState instance

    # driver, iterates through the source and passes the decoder class the current
    # index to decode. Depending on the implementation this can be linear sweep
    # or recursive descent.

    def __init__(self, decoder):
        self.decoder = decoder

    def decode(self):
        pass