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.3
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| csetty_mips-0.1.3.tar.gz | 68.1 kB | Without provenance | Details for csetty_mips-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| csetty_mips-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for csetty_mips-0.1.3-py3-none-any.whl |
Total release size: 121.5 kB
Release files / csetty_mips-0.1.3.tar.gz
| Download URL | csetty_mips-0.1.3.tar.gz |
|---|---|
| Size | 68.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06443a8ac985c063d460e055ebdacf67324256fdcf26b3923adbdaaf4c40d55b
|
|
BLAKE2b-256 checksum How to use checksums |
7b8709cb61de74ff5ce859b89dee70de3d3304abd2835975103b063e822b8808
|
| 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.3-py3-none-any.whl
| Download URL | csetty_mips-0.1.3-py3-none-any.whl |
|---|---|
| Size | 53.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e9f255ffd64ddef406648676e9593b8051b857f2d802637b645b7c8ef626ac3
|
|
BLAKE2b-256 checksum How to use checksums |
3774c03e08a3640bc6184b819feaf202da1f8083e27bfd386b47077c216497e6
|
| 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.3
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.