Example #1
0
def test(str):
    compile(str)
    f = x86.freeze_code_buffer()
    # dump_hex(f)
    print shoothead.call(f, 0)
Example #2
0
def dump_code():
    dump_hex(x86.freeze_code_buffer())
Example #3
0
def dump_code():
    dump_hex(x86.freeze_code_buffer())
Example #4
0
def test():
    emit_add42()
    add42 = x86.freeze_code_buffer()
    print shoothead.call(add42, 8)   # should print 50 (= 42+8)
Example #5
0
def test(str):
    compile(str)
    f = x86.freeze_code_buffer()
    # dump_hex(f)
    print shoothead.call(f, 0)