gavofyork / graypaper

The JAM Specification
112 stars 41 forks source link

Redefine `trap` to be a panic instead of a halt #52

Closed koute closed 3 months ago

koute commented 3 months ago

The GP defines the trap instruction to be a halt, but this instruction was always meant to be used for abnormal termination (and in fact the compiler will use it when e.g. you do a panic! in Rust, or an assertion fails, etc.).