a frogopcodes

yeah

opcode list:

  1. nop O no op

stack:

  1. psh P push
  2. pop V pop
  3. dup D duplicate
  4. swp W swap
  5. ovr K over
  6. rot G rotate

memory:

  1. lds L load
  2. str S store

math / logic:

  1. add A add
  2. sub U subtract
  3. mul M multiply
  4. deallocated cuz and is kind of useless since u can just use mul, im still not sure how much syntactic sugar i want
  5. not N invert
  6. ibz B is below zero

control flow:

  1. jmp J jump (unconditional)
  2. cjp C conditional jump (pop, if zero dont jump)
  3. rjp E relative jump
  4. rcj Q relative conditional jump
  5. cll F call
  6. ret R return
  7. hlt H halt

im unsure if i will add the following. they seem kinda useful but maybe not that much.

  1. pfr w pop from return?
  2. ptr x push to return?