Code1/Code4/Code8/Code16 ('Program' blocks, CT 325-328) currently forward the first input to the first output and warn 'PicoC block is not simulated'. The script is not parsed or executed.
Blocked on verification inputs (no real Code block exists in repo golden configs or live configs):
- A real downloaded Code block to capture the exact XML storage format of the script text + connector layout.
- The authoritative PicoC runtime API surface (getinput/setoutput/getinputtext/setoutputtext, etc.).
Plan once unblocked: parse the code string in parser.rs (like Formula/SequenceController), implement a bounded subset interpreter (var decls, arithmetic, if/else, I/O intrinsics) in lox-sim/src/blocks/misc.rs with graceful pass-through fallback for unsupported scripts, validated against the real block.
Code1/Code4/Code8/Code16 ('Program' blocks, CT 325-328) currently forward the first input to the first output and warn 'PicoC block is not simulated'. The script is not parsed or executed.
Blocked on verification inputs (no real Code block exists in repo golden configs or live configs):
Plan once unblocked: parse the code string in parser.rs (like Formula/SequenceController), implement a bounded subset interpreter (var decls, arithmetic, if/else, I/O intrinsics) in lox-sim/src/blocks/misc.rs with graceful pass-through fallback for unsupported scripts, validated against the real block.