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.

17 lines
539B

  1. Structured flow
  2. z80a also has words that behave similarly to IF..THEN and
  3. BEGIN..UNTIL.
  4. On the IF side, we have IFZ, IFNZ, IFC, IFNC, and THEN,. When
  5. the opposite condition is met, a relative jump is made to
  6. THEN,'s PC. For example, if you have IFZ, a jump is made when
  7. Z is unset.
  8. On the BEGIN,..AGAIN, side, it's a bit different. You start
  9. with your BEGIN, instruction, and then later you issue a
  10. JRxx, instr followed by AGAIN,. Exactly like you would do
  11. with a label.
  12. (cont.)