Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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, ;