jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Opposite rotate instruction #90

Closed jmeaster30 closed 8 months ago

jmeaster30 commented 8 months ago

Currently, if I need to push the top value to the bottom of the stack (for example lets say the stack is 4 values) then I have to do

rotate 4 rotate 4 rotate 4

I want to just have one instruction for this instead since it is such a common thing.

jmeaster30 commented 8 months ago

I made this rotate -4 but I don't know if I like that too much.

I may switch to sink and float instructions to better indicate what they are doing