Original repository here.
We added a few new keywords for students to implement:
i32.mod
: computes the moduloi32.pow
: computes the powercopy
: copy the top of the stackloopn
: pop the number of iterationsn
and repeats the next instructionn
timesbeginfm/endfm
: pop theid
of afunmacro
and defines thefunmacro
as the instructions betweenbeginfm
andendfm
callfm
: pop theid
of afunmacro
and executes it
To make it simpler, we disabled the type checker, so that the student don't have to worry about it.
The modified wat2wasm
converter tool with code examples is available on the webpage of the repository here.
The private repository for this webpage is here.