1
0

Fixed som small dumb errors.

This commit is contained in:
Jon Michael Aanes 2015-12-17 00:11:18 +01:00
parent 9397c8cc56
commit b783b22bc4
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import re
import sys
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 = {
"insert": "green",
"change": "yellow",

View File

@ -61,8 +61,8 @@ if __name__ == "__main__":
# Setup
registers = ["%rip","%rbp","%rsp","","%rax","%rdi","%r8","%r9"]
emu = infernal.Emulator(fib_prog, registers)
painter = infernal.TikzPainter()
emu = infernal.Emulator(fib_prog)
painter = infernal.TikzPainter(registers)
emu.setStack("junk...", "calling eip")
emu.setRegs( rip = 0, rbp = 'old bp', rdi = a )