rrthomas / mit

A simple stack-based VM
Other
10 stars 3 forks source link

Name errors and specify when they are detected #407

Open rrthomas opened 4 years ago

rrthomas commented 4 years ago

As for instructions, name the errors, and have an encoding table.

Specify as before when the errors are detected (if they are), so as to make their (optional) semantics precise. In particular, address alignment should be checked before address validity; load/store instructions check validity; stack errors are raised before any part of an instruction's actions are performed.