Mirror of CollapseOS
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

17 Zeilen
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.)