Commit 00b9ac47 authored by George Hotz's avatar George Hotz

issue with ll?

parent 607e8e52
......@@ -126,8 +126,9 @@ func opStaticCall(pc *uint64, interpreter *vm.EVMInterpreter, scope *vm.ScopeCon
fmt.Println("HOOKED READ! ", fmt.Sprintf("%x = %x", addr, nret))
}
if addr == 0xc0000080 && debug >= 1 {
fmt.Printf("%7d %8X %08X : %08X %08X %08X %08X %08X %08X %08X %08X\n",
fmt.Printf("%7d %8X %08X : %08X %08X %08X %08X %08X %08X %08X %08X %08X\n",
pcCount, nret, ram[nret],
ram[0xc0000004],
ram[0xc0000008], ram[0xc000000c], ram[0xc0000010], ram[0xc0000014],
ram[0xc0000018], ram[0xc000001c], ram[0xc0000020], ram[0xc0000024])
pcCount += 1
......
#!/bin/bash
echo "running in go"
$(cd ../mipsevm && ./evm.sh /tmp/minigeth.bin > /tmp/gethtrace)
echo "compare"
./simple.py
......@@ -105,8 +105,8 @@ def hook_code_simple(uc, address, size, user_data):
inst = struct.unpack(">I", uc.mem_read(pc, 4))[0]
regs = []
# starting at V0
for i in range(4,12):
# starting at AT
for i in range(3,12):
regs.append(uc.reg_read(i))
rr = ' '.join(["%08X" % x for x in regs])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment