Mirror of CollapseOS
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

17 linhas
464B

  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. : BSET PC SWAP ! ;
  5. ( same as BSET, but we need to write a placeholder )
  6. : FJR, PC 0 A, ;
  7. : IFZ, JRNZ, FJR, ;
  8. : IFNZ, JRZ, FJR, ;
  9. : IFC, JRNC, FJR, ;
  10. : IFNC, JRC, FJR, ;
  11. : THEN,
  12. DUP PC ( l l pc )
  13. -^ 1- ( l off )
  14. ( warning: l is a PC offset, not a mem addr! )
  15. SWAP ORG @ + BIN( @ - ( off addr )
  16. C! ;