Skip to main content

Asmy - Python Multi-Architecture Assembler

PyPI Tests License Python

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)

Source distribution for asmy 0.1.2
File Size Uploaded
asmy-0.1.2.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asmy 0.1.2
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page