Skip to main content

csetty-mips

csetty-mips is an independently implemented, typed MIPS32 teaching assembler, simulator, disassembler, and time-travel debugger. It is the MIPS runtime used by CSEExamTTY, but is developed and released as a standalone Python package.

Version 0.1.4 fixes labels before explicit/automatic alignment, including standalone labels, aliases and exported symbols. See the alignment audit and the updated local specification for this build's behavior.

This project is not a fork, port, or redistribution of insou22/mipsy. It contains no upstream mipsy source, binary, tests, generated files, or copied diagnostic text. The provenance record documents the clean-room boundary and public architectural references.

The project is not made, managed, endorsed, or authenticated by UNSW or the UNSW School of Computer Science and Engineering.

Install

Python 3.11 or newer is required.

Install the versioned release from PyPI:

python3 -m pip install csetty-mips==0.1.4

The same wheel is also available through GitHub Releases:

python3 -m pip install https://github.com/JiaruiUNSW/CSEtty-MIPS/releases/download/v0.1.4/csetty_mips-0.1.4-py3-none-any.whl

For an editable development checkout:

python3 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'

Command line

csetty-mips program.s -- arg1 arg2
csetty-mips --check program.s
csetty-mips --hex-pad-zero program.s
csetty-mips --interactive program.s
csetty-mips                         # debugger; then use `load FILE...`

Strict initialization diagnostics are enabled by default. --spim (also spelled --relaxed) makes uninitialized registers and memory read as zero for compatibility-oriented runs. Sandboxed file syscalls require an explicit --fs-root DIR.

Python API

from csetty_mips import Machine, SourceUnit, assemble

program = assemble(
    [SourceUnit("answer.s", ".text\nmain: li $a0, 42\nli $v0, 1\nsyscall\njr $ra\n")]
)
machine = Machine(program)
machine.run()
assert machine.io.output == b"42"

The supported instruction, directive, syscall, debugger, filesystem, and resource-limit contracts are documented in the specification. The acceptance matrix records executable coverage and deliberate non-goals.

Verify

ruff check src tests
mypy src/csetty_mips
pytest -q
python -m build

SPIM is an optional black-box oracle for one independently authored overlap fixture; its absence causes one test to skip.

Maintainers: see the release procedure for GitHub/PyPI publishing and downstream browser bundle verification.

License

The source code in this repository is licensed under the Mozilla Public License 2.0. See LICENSE and NOTICE.

Metadata

Release files for csetty-mips 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csetty-mips 0.1.4
File Size Uploaded Provenance Actions
csetty_mips-0.1.4.tar.gz 86.2 kB With provenance Details for csetty_mips-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for csetty-mips 0.1.4
File Interpreter ABI Platform Actions
csetty_mips-0.1.4-py3-none-any.whl Python 3 none any Details for csetty_mips-0.1.4-py3-none-any.whl

Total release size: 140.5 kB

Release files / csetty_mips-0.1.4.tar.gz

Download URL csetty_mips-0.1.4.tar.gz
Size 86.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a1f4215148e12f728c5bbf84fe1bb098983a22885b752b4b9da5e00fdcab9eff
BLAKE2b-256 checksum
How to use checksums
cf0e133751186ef0217789456e03ae7a89e992637ab3359120b9037893c2a8f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / csetty_mips-0.1.4-py3-none-any.whl

Download URL csetty_mips-0.1.4-py3-none-any.whl
Size 54.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f81e764af0ce0e30e321b26f65645cd92c0072bbd8574669f4e8b3b7c657c32
BLAKE2b-256 checksum
How to use checksums
df3dca26f8a8c1a466381d2fa2ffe8107015a4e36845e502e03df337054e552e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Security for csetty-mips 0.1.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for csetty_mips-0.1.4.tar.gz

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 Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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