Closed Mnem42 closed 1 week ago
pov:noop
pov:@counter
yes noop
is text only
you should be using text at this point anyway
pov:
noop
pov:@counter
Yup, i'm dumb
Closed
you should be using text at this point anyway
Late, but I do that. Just forgot that counter was settable, and forgot about no-ops.
Describe the content or mechanics you are proposing.
Making the
jump
instruction have an option to take a numerical variable as an input (and jumps forward by that many lines), or make anothernjump
instruction to do that, and add no-ops to make it more useful as a feature.Describe how you think this content will improve the game. If you're proposing new content, mention how it may add more gameplay options or how it will fill a new niche.
It allows if else statements based on a numerical value to be more efficient and readable, because it only has to check one jump command after a small amount of math to adjust the number as needed.
No ops are useful for aligning each option in some cases (e.g. one branch takes one or two more instructions), and shouldn't take a tick, because the
wait
instruction already exists to use up CPU time. Aprint
statement can be abused to do the same thing, but it takes an extra tick and isn't very good for semantics (nop
has a more clear intention thanprint ""
). There can also be annnop
command that inserts n mops before the code is run (nnop 3
rather thannop nop nop
).This feature is useful for things like mlog GPUs, for decoding each command efficiently.
Before making this issue, check the boxes below to confirm that you have acknowledged them.