Closed apt1002 closed 4 years ago
Encode pushi and pushreli with an unsigned immediate operand, and subtract off a suitable bias (32 for pushi and 64 for pushreli) before using it.
pushi
pushreli
This allows ir to be consumed using logical right shift, and obviates nextff.
ir
nextff
I explained (I'm pretty sure!) that this won't work because it breaks jumpi, jumpzi and calli, but then it seems we both forgot!
jumpi
jumpzi
calli
Encode
pushi
andpushreli
with an unsigned immediate operand, and subtract off a suitable bias (32 forpushi
and 64 forpushreli
) before using it.This allows
ir
to be consumed using logical right shift, and obviatesnextff
.