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.

Source Distribution

pyyasm-0.0.1.tar.gz (506.7 kB view details)

Uploaded Source

File details

Details for the file pyyasm-0.0.1.tar.gz.

File metadata

  • Download URL: pyyasm-0.0.1.tar.gz
  • Upload date:
  • Size: 506.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyyasm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 de10fe3885213e55f7ad784ab3f1dd3d74d550e6ccd7d710b7241d3d1864fbee
MD5 84461b49f7da4e4025b7e9fe9290d3e5
BLAKE2b-256 24363069ee808f0b2870b6376459c18380a5584d11f05720b92db3aaefe26821

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page