Fixed som small dumb errors.
This commit is contained in:
parent
9397c8cc56
commit
b783b22bc4
|
@ -3,7 +3,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
REGISTERS=["%rax", "%rbx", "%rcx", "%rdx", "%rsp", "%rbp", "%rsi", "%rdi",
|
REGISTERS=["%rax", "%rbx", "%rcx", "%rdx", "%rsp", "%rbp", "%rsi", "%rdi",
|
||||||
"%r8," "%r9," "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"]
|
"%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"]
|
||||||
REG_STATUS_TO_COLOR = {
|
REG_STATUS_TO_COLOR = {
|
||||||
"insert": "green",
|
"insert": "green",
|
||||||
"change": "yellow",
|
"change": "yellow",
|
||||||
|
|
|
@ -61,8 +61,8 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
registers = ["%rip","%rbp","%rsp","","%rax","%rdi","%r8","%r9"]
|
registers = ["%rip","%rbp","%rsp","","%rax","%rdi","%r8","%r9"]
|
||||||
emu = infernal.Emulator(fib_prog, registers)
|
emu = infernal.Emulator(fib_prog)
|
||||||
painter = infernal.TikzPainter()
|
painter = infernal.TikzPainter(registers)
|
||||||
emu.setStack("junk...", "calling eip")
|
emu.setStack("junk...", "calling eip")
|
||||||
emu.setRegs( rip = 0, rbp = 'old bp', rdi = a )
|
emu.setRegs( rip = 0, rbp = 'old bp', rdi = a )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user