Exemplo n.º 1
0
def main():
    print "---Started---"
    hexes = ["52800083","d2800042","d2800063","b8236843"]

    for hexcode in hexes:
        resetInstrFlag()
        decoder.decodeInstr(hexcode)
    printAllRegs()
    printAllFlags()
Exemplo n.º 2
0
def main():
    print "---Started---"
    hexes = ["52800083", "d2800042", "d2800063", "b8236843"]

    for hexcode in hexes:
        resetInstrFlag()
        decoder.decodeInstr(hexcode)
    printAllRegs()
    printAllFlags()
Exemplo n.º 3
0
def main():
    print "---Started---"
    #"52800102"
    hexes = ['d2800041', '94000002', 'd2800040', '52800063', 'd65f03c0']
    for hexcode in hexes:
        print 'inst: ' + utilFunc.hexToBin(hexcode)
        resetInstrFlag()
        #utilFunc.set_Z_flag()
        decoder.decodeInstr(hexcode)
    printAllRegs()
    printAllFlags()
Exemplo n.º 4
0
def main():
    print "---Started---"
    #"52800102"
    hexes = ['d2800041', '94000002', 'd2800040', '52800063', 'd65f03c0']
    for hexcode in hexes:
        print 'inst: '+utilFunc.hexToBin(hexcode)
        resetInstrFlag()
        #utilFunc.set_Z_flag()
        decoder.decodeInstr(hexcode)
    printAllRegs()
    printAllFlags()