コード例 #1
0
def test():
    emit_add42()
    add42 = x86.freeze_code_buffer()
    print shoothead.call(add42, 8)   # should print 50 (= 42+8)
コード例 #2
0
ファイル: calc.py プロジェクト: floatingnumber/miasma-1
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)