fname=fname[:-1]+"o" yo=file(fname) while True: line=yo.readline() if line=="": break word.append(line) print("确认吗,n表示放弃".decode('UTF-8')) s=(str)(raw_input()) if(s=="n") or (s=="N"): exit(0) Y86API.initY86(word) val,memory=Y86API.getY86() data.show() list_val.append(dict(val)) list_memory.append(dict(memory)) show=True while val["end"]==False: val,memory=Y86API.executeY86(val,memory) if show: data.show() show=True if(len(list_val)==1): print("这是初始状态".decode('UTF-8')) print("Next?[x:退出][s:多步][b:退一次][m:内存查看][其他:继续]".decode('UTF-8')) s=(str)(raw_input())
import Y86API word=[] memory={} val={} yo=file("input.yo") while True: line=yo.readline() if line=="": break word.append(line) Y86API.initY86(word) Y86API.exeY86() val,memory = Y86API.getY86() while val["end"]==False: Y86API.setY86(val,memory) Y86API.exeY86() val,memory=Y86API.getY86() # print "f**k",len(val),len(memory) print("@@@@@@@@@@@@@@@@@@@@@@@@")
fname = fname[:-1] + "o" yo = file(fname) while True: line = yo.readline() if line == "": break word.append(line) print("确认吗,n表示放弃".decode('UTF-8')) s = (str)(raw_input()) if (s == "n") or (s == "N"): exit(0) Y86API.initY86(word) val, memory = Y86API.getY86() data.show() list_val.append(dict(val)) list_memory.append(dict(memory)) show = True while val["end"] == False: val, memory = Y86API.executeY86(val, memory) if show: data.show() show = True if (len(list_val) == 1): print("这是初始状态".decode('UTF-8')) print("Next?[x:退出][s:多步][b:退一次][m:内存查看][其他:继续]".decode('UTF-8')) s = (str)(raw_input())
while True: line=yo.readline() if line=="": break word.append(line) print("Confirm it?[\"n\" for not]") s=(str)(raw_input()) if(s=="n") or (s=="N"): exit(0) #Y86API.initY86(word) #val,memory=Y86API.getY86() val,memory=Y86API.executeY86(0,0,word) data.show() print(val["00000000"]) print(val["00000006"]) print(val["0000000c"]) list_val.append(dict(val)) list_memory.append(dict(memory)) print("Next?[\"n\" for exit]") s=(str)(raw_input()) if(s=="n") or (s=="N"): exit(0)
while True: line = yo.readline() if line == "": break word.append(line) print("Confirm it?[\"n\" for not]") s = (str)(raw_input()) if (s == "n") or (s == "N"): exit(0) #Y86API.initY86(word) #val,memory=Y86API.getY86() val, memory = Y86API.executeY86(0, 0, word) data.show() print(val["00000000"]) print(val["00000006"]) print(val["0000000c"]) list_val.append(dict(val)) list_memory.append(dict(memory)) print("Next?[\"n\" for exit]") s = (str)(raw_input()) if (s == "n") or (s == "N"): exit(0)
import Y86API word = [] memory = {} val = {} yo = file("input.yo") while True: line = yo.readline() if line == "": break word.append(line) Y86API.initY86(word) Y86API.exeY86() val, memory = Y86API.getY86() while val["end"] == False: Y86API.setY86(val, memory) Y86API.exeY86() val, memory = Y86API.getY86() # print "f**k",len(val),len(memory) print("@@@@@@@@@@@@@@@@@@@@@@@@")