Mirror of CollapseOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

14 lines
336B

  1. ( Place BEGIN, where you want to jump back and AGAIN after
  2. a relative jump operator. Just like BSET and BWR. )
  3. : BEGIN, PC ;
  4. : AGAIN, PC - 1- A, ;
  5. : BSET PC SWAP ! ;
  6. : BWR @ AGAIN, ;
  7. ( same as BSET, but we need to write a placeholder )
  8. : FJR, PC 0 A, ;
  9. : IFZ, JRNZ, FJR, ;
  10. : IFNZ, JRZ, FJR, ;
  11. : IFC, JRNC, FJR, ;
  12. : IFNC, JRC, FJR, ;