예제 #1
0
def test():
    emit_add42()
    add42 = x86.freeze_code_buffer()
    print shoothead.call(add42, 8)   # should print 50 (= 42+8)
예제 #2
0
def test(str):
    compile(str)
    f = x86.freeze_code_buffer()
    # dump_hex(f)
    print shoothead.call(f, 0)
예제 #3
0
파일: calc.py 프로젝트: darius/miasma
def test(str):
    compile(str)
    f = x86.freeze_code_buffer()
    # dump_hex(f)
    print shoothead.call(f, 0)