asmcup / runtime

Runtime and compiler for the Assembly Cup
https://asmcup.github.io
MIT License
139 stars 11 forks source link

"push8 #-1" not recognised as "push8 #255" by compiler #189

Closed MLanghof closed 7 years ago

MLanghof commented 7 years ago

The statement push8 #-1 is equivalent to push8 #255, it gets compiled into a two byte immediate push though, instead of the constant function (c_255).