pyyasm

A python Yasm Wrapper for x86 and x64.


License
BSD-3-Clause
Install
pip install pyyasm==0.0.1

Documentation

pyyasm

Python x86/x64 wrapper for Yasm

Using pyyasm

import pyyasm

# some inline asm which does nothing just to show how the library works
# __asm as to be bytes.
__asm = b"""
	use32
	org 0
    pushfd
    pushad
    popad
    popfd
"""
bytecode = pyyasm.assemble(__asm)
print(bytecode)

> b'f\x9cf`faf\x9d'

Running tests

python setup.py test