FLUX bytecode assembler and disassembler for constraint enforcement VM
Project description
flux-asm
FLUX bytecode assembler — two-pass with labels, comments, and disassembler.
43 opcodes for the FLUX constraint enforcement VM.
Usage
# Assemble
python -m flux_asm program.fxasm -o program.flux
# Disassemble
python -m flux_asm -d program.flux
# Run self-tests
python -m flux_asm
Example
# eVTOL altitude check
PUSH 100 # altitude
PUSH 0 # min
CMP_GE # altitude >= 0?
JFAIL fail
PUSH 15000 # max
CARRY_LT # altitude < max
ASSERT
HALT
fail:
GUARD_TRAP
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flux_asm-0.1.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flux_asm-0.1.0.tar.gz.
File metadata
- Download URL: flux_asm-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dc8baf04b167530ea2b1aae3bdfe8ab255edc4a3268539ff194b6532fcf49d3
|
|
| MD5 |
0d4ef37fb3a6975f1c1370ab6b26e8d9
|
|
| BLAKE2b-256 |
c5de99c5fdb4c74c6d8858ce9487ea5a08416fa683180f44ec9b63f58a1157e0
|
File details
Details for the file flux_asm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flux_asm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ad4a2f6404141564cb75448ba1fd866f0865344ef95710b54d1305671de2576
|
|
| MD5 |
501285d9571c558ef67ac5fc68f34786
|
|
| BLAKE2b-256 |
79b1768158a24def605ed6b0df5cc25e765733ca6d8512bf7d07d230fece1971
|