CONSON PRINT NUM-1 INPUT SETBYTE 1 cache // save cache to byte starting from 1-8 PRINT cache PRINT NUM-2 INPUT SETBYTE 9 cache PRINT cache // save cache to byte starting from 9-16 INPUT SETRAM 17 cache // lets say 1 = add 0 = subtract PRINT RESULT: CONDJUMP 19 25 17 // add the first number to the second number, save num to bits 18-25 ADD 1 9 18 NUMTOCACHE 18 PRINT cache JUMP 1 // subtract the second number from the first number, save num to bits 18-25 SUB 1 9 18 NUMTOCACHE 18 PRINT cache JUMP 1 // Basicly how ram is defined here: // 1-8 First number // 9-16 Second number // 17 Subtract or add // 18-25 Result // How the condjump works: // If bit 17 is 1 (add) then it will jump to the add portion (on line 19 theres the comment about add) // The same with 0 (subtract) it will jump to the subtrach portion (on line 25 there is a comment about subtract) // The "JUMP 1" at the end of each portion will jump to the start, basicly like a 'while True' loop, and also skips the other portion // (else it will for example add first and then subtract)