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