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 line
605B

  1. This assembler works very much like Z80 assembler (B200) so
  2. refer to this documentation first. Here, we document specifici-
  3. ties.
  4. All mnemonics in AVR have a single signature. Therefore, we
  5. don't need any "argtype" suffixes.
  6. Registers are referred to with consts R0-R31. There is
  7. X, Y, Z, X+, Y+, Z+, X-, Y-, Z- for appropriate ops (LD, ST).
  8. XL, XH, YL, YH, ZL, ZH are simple aliases to R26-R31.
  9. Branching works differently. Instead of expecting a byte to be
  10. written after the naked op, branching words expect a displace-
  11. ment argument.
  12. (cont.)