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.

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.

python3 -m pip install csetty-mips==0.1.1

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.

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.1

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.1
File Size Uploaded Provenance Actions
csetty_mips-0.1.1.tar.gz 63.5 kB Without provenance Details for csetty_mips-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 115.8 kB

Release files / csetty_mips-0.1.1.tar.gz

Download URL csetty_mips-0.1.1.tar.gz
Size 63.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed99f6c01b68bf78fc14c78c3ac2bf2d4f673d7b74c486707a51391f5809de3a
BLAKE2b-256 checksum
How to use checksums
73c6a35004e4558b547127e3e64456d69559a7a31cb2855fb5b3310356c2a8fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL csetty_mips-0.1.1-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d813f6fca692f5d0ea4829b7c2f25147bf4c8f4e6c5844fa1eb8aacf10f0d5c
BLAKE2b-256 checksum
How to use checksums
580879eaff605f794a3ab9b0027a027435ed006847251991ac9a11f1782dda00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for csetty-mips 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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