1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-20 22:18:06 +11:00
collapseos/blk/651

17 lines
605 B
Plaintext
Raw Normal View History

2020-06-29 22:01:39 +10:00
This assembler works very much like Z80 assembler (B200) so
refer to this documentation first. Here, we document specifici-
ties.
2020-06-28 20:57:59 +10:00
2020-06-29 22:01:39 +10:00
All mnemonics in AVR have a single signature. Therefore, we
don't need any "argtype" suffixes.
2020-06-28 20:57:59 +10:00
2020-06-29 22:01:39 +10:00
Registers are referred to with consts R0-R31. There is
X, Y, Z, X+, Y+, Z+, X-, Y-, Z- for appropriate ops (LD, ST).
XL, XH, YL, YH, ZL, ZH are simple aliases to R26-R31.
Branching works differently. Instead of expecting a byte to be
written after the naked op, branching words expect a displace-
ment argument.
(cont.)