editor sorta for ska3 press space for some features also SEE INSIDE because im too lazy to add a way to edit the list inside the project opcode (opnumber) - # operands, info hlt (-1) - no operands, stops the program comment, compnote (0) - 1 operand, both act the same to the compiler but compnote gives extra information log (1) - no operands, prints whatever memory cell the pointer is on to the terminal res (2) - no operands, resets the memory cells (not recommended, manual garbage collection is much more precise) clr (3) - no operands, clears the terminal mov (4) - 1 operand, sets whatever cell the pointer is on to whatever the first operand is pnt (5) - 1 operand, sets the pointer to the first operand (a number 1 - 32) cin (6) - 1 operand, prints the first operand to the terminal and then gets input from the user and puts it on the memory cell the pointer points to ps (7) - no operands, makes the pointer point to the value of the pointed-to memory cell (aka if pointer is 3, and cell 3's value is 4, it will set the pointer to 4) deb (8) - no operands, prints the memory cells to the terminal. deb stands for debug btw pif (9) - 2 operands, pointer goes to the 2nd operand if the 1st operand and the current pointed-to memory cell are the same pin (10) - 2 operands, same as pif but it inverts the if statement (point if NOT) gif (11) - 2 operands, same as pif but instead of pointing to the 2nd operand, it sets the program counter to the second operand gin (12) - 2 operands, same as gif but inverts the if statement (go if NOT) go (13) - 1 operand, sets program counter to the 1st operand phew that was a lot
to use the old "//*" delimiters instead of the " . " delimiter just put +legacy in the compnote also this adds compnote compnote just tells the compiler what to change if anything compnote should always be the first item in a list to be recognized otherwise wont work compnote example: compnote . +note1+note2 list of notes: legacy that's all folks