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

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.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 csetty-mips 0.1.2
File Size Uploaded Provenance Actions
csetty_mips-0.1.2.tar.gz 65.2 kB Without provenance Details for csetty_mips-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 117.6 kB

Release files / csetty_mips-0.1.2.tar.gz

Download URL csetty_mips-0.1.2.tar.gz
Size 65.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dd28e38f5eeb41f12b6930b07019638de3a8f2b8e4c380c578b427a1bf15ae9f
BLAKE2b-256 checksum
How to use checksums
8d639fb3004f83a0f9fbfb41657a192b52ce07a5c1ff80bd27fa868f0e9de717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

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

Download URL csetty_mips-0.1.2-py3-none-any.whl
Size 52.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf0192a74fbd8951a553395c3e4ef2c3328f9e482f038ef9167e87ce7a6ac657
BLAKE2b-256 checksum
How to use checksums
270e91a7977566650fdee900d1d5fd226e8b0f3e32eb22a9e03f84c77ad93ae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Security for csetty-mips 0.1.2

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