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
536B

  1. The following words allow you to assemble z80 binaries. Being
  2. Forth words, opcode assembly is a bit different than with a
  3. typical assembler. For example, what would traditionally be
  4. "ld a, b" would become "A B LDrr,".
  5. BIN( is the addr at which the compiled binary will live. It is
  6. often 0.
  7. ORG is H@ offset at which we begin spitting binary. Used to
  8. compute PC. To have a proper PC, call "H@ ORG !" at the
  9. beginning of your assembly process. PC is H@ - ORG + BIN(.
  10. (cont.)