Asmy - Python Multi-Architecture Assembler
A minimal Python-based assembler for multiple architectures.
Features
- Pythonic syntax for assembly
- Label support with fixups
- Little/big-endian aware
- ROM generation with .org/.db/.dw
- Bring your own macros and metaprogramming with Python
Supported architectures:
Example (CHIP-8)
from asmy.chip8 import *
org(0x200)
with label("start"):
ld(V0, 0)
with label("loop"):
add(V0, 1)
cls()
jp("loop")
# Print resulting ROM in hex
print(asm.finalize().hex(" ", 2))
To try this example locally:
PYTHONPATH=. python3 examples/chip8_loop.py
Installation
pip install asmy
Metadata
Release files for asmy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asmy-0.1.2.tar.gz | 13.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asmy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.8 kB
Release files / asmy-0.1.2.tar.gz
| Download URL | asmy-0.1.2.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92cb751067dbbd180e9025a1890ddd840c2b61699692ec6dddfb183a05d3c70b
|
|
BLAKE2b-256 checksum How to use checksums |
34584bbf323edeaccba12555db1a8dbf3ddd9dc8a0e9ee6b7f06d3ffaf70b2f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.
Transparency logRelease files / asmy-0.1.2-py3-none-any.whl
| Download URL | asmy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1f49d71eb6d73c7097a028d18783e96321dcbc24afa5234a11c8ee3a9c0d90b
|
|
BLAKE2b-256 checksum How to use checksums |
9b47d75447540bec50ab7c146fa667f864cfb4a8306c037c2ec4675da60ebe08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.
Transparency log