Skip to main content

A python Yasm Wrapper for x86 and x64.

Project description

pyyasm

https://codecov.io/gh/srounet/PyYasm/branch/master/graph/badge.svg https://ci.appveyor.com/api/projects/status/y1yj33qd633a5tk5?svg=true

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

Changelog

0.0.1: initial release (07/05/2017)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyyasm, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyyasm-0.0.1.tar.gz (506.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page