Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srounet/pyyasm
Python wrapper for Yasm
https://github.com/srounet/pyyasm
assembly python3 yasm yasm-assembler
Last synced: 3 days ago
JSON representation
Python wrapper for Yasm
- Host: GitHub
- URL: https://github.com/srounet/pyyasm
- Owner: srounet
- License: other
- Created: 2017-05-07T08:10:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T10:50:39.000Z (over 7 years ago)
- Last Synced: 2025-01-30T17:05:20.527Z (3 days ago)
- Topics: assembly, python3, yasm, yasm-assembler
- Language: PowerShell
- Size: 521 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: license.txt
Awesome Lists containing this project
README
pyyasm
======
.. image:: https://codecov.io/gh/srounet/PyYasm/branch/master/graph/badge.svg
:target: https://codecov.io/gh/srounet/PyYasm
.. image:: https://ci.appveyor.com/api/projects/status/y1yj33qd633a5tk5?svg=true
:target: https://ci.appveyor.com/project/srounet/pyyasmPython x86/x64 wrapper for Yasm
Using pyyasm
============.. code-block:: python
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
=============.. code-block:: shell
python setup.py test
Changelog
=========0.0.1: initial release (07/05/2017)