示例#1
0
def test(str):
    compile(str)
    f = x86.freeze_code_buffer()
    # dump_hex(f)
    print shoothead.call(f, 0)
示例#2
0
def dump_code():
    dump_hex(x86.freeze_code_buffer())
示例#3
0
文件: test.py 项目: darius/miasma
def dump_code():
    dump_hex(x86.freeze_code_buffer())
示例#4
0
def test():
    emit_add42()
    add42 = x86.freeze_code_buffer()
    print shoothead.call(add42, 8)   # should print 50 (= 42+8)
示例#5
0
文件: calc.py 项目: darius/miasma
def test(str):
    compile(str)
    f = x86.freeze_code_buffer()
    # dump_hex(f)
    print shoothead.call(f, 0)