nim-works / phy

compiler and vm experiments
MIT License
3 stars 2 forks source link

vm: fix `opcBitNot` validation #57

Closed zerbina closed 1 month ago

zerbina commented 1 month ago

Summary

Details

The opcBitNot operation only needs a single stack operand, but the validation required two. This is now fixed, and a test for opcBitNot is added to make sure validation and execution of it works.

For convenience of writing the test, the assembler is extended to support integers in hexadecimal form in all places where integer numbers are expected.


Notes For Reviewers