Download docs/research/QVM_PACKED_CONTROLS.md from nmarshall/urt-rs: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/nmarshall/urt-rs/resolve/main/docs/research/QVM_PACKED_CONTROLS.md
- Command line
-
hf download hf://nmarshall/urt-rs/docs/research/QVM_PACKED_CONTROLS.md
-
curl -L -o QVM_PACKED_CONTROLS.md https://huggingface.co/nmarshall/urt-rs/resolve/main/docs/research/QVM_PACKED_CONTROLS.md
Packed mode availability edge latch and resource countdown
RE-565. Reproduce with python3 scripts/analyze_qvm_packed_controls.py; check with python3 scripts/test_qvm_packed_controls.py. The machine report retains source identity and bounded fixtures.
Three complete bounded leaves now execute with source traces.50250 emits event15 only on an unlatched button128 press, sets state32768, leaves a held press latched, and clears the latch on release.50309 returns1 if the selected52-byte mode record flags+4 contain4, otherwise returns whether packed magazine bits8..15 are nonzero. The mode address is4244+432×id+52×mode, with ID low byte and mode bits16..23.
50397 subtracts integer global35023932 from nonzero PS196, clamps negative countdown to0, then if zero subtracts mode+28 rate×the full tick dt from PS188 and clamps negative resource to0. For timer15, dt16, resource1000 and rate2, the result is968. It does not drain only one unit of elapsed time. Signed32 multiplication/subtraction wrap follows the VM instruction semantics; negative and overflow values are explicit synthetic boundary fixtures, not asserted legal gameplay inputs.
Image mode flags are retained for selected initialized records; marked flags overrides isolate the no-magazine exception. All resource rates are explicitly supplied. Remaining: identify the resource and its writers, validate legal rates and live mode initialization, and integrate these leaves with the actual weapon prefix and subsequent state machine.
No original executable/full QVM/native collision/physics/rendering executes. Native responses and legal input domains are supplied or unverified where stated; full runtime/macOS/Linux Rust/Bevy/Solari gameplay remains open.