|
|
@@ -5,10 +5,10 @@ There are sections, below, for each supported architectures, but |
|
|
|
you should read this first section first to be familiar with |
|
|
|
those common, basic principles) |
|
|
|
|
|
|
|
Words in the Z80 assembler (B5) allow you to assemble z80 bin- |
|
|
|
aries. Being Forth words, opcode assembly is a bit different |
|
|
|
than with a typical assembler. For example, what would tradi- |
|
|
|
tionally be "ld a, b" would become "A B LDrr,". |
|
|
|
Words in the Z80 assembler, loaded with "5 LOAD" allow you to |
|
|
|
assemble z80 binaries. Being Forth words, opcode assembly is a |
|
|
|
bit different than with a typical assembler. For example, what |
|
|
|
would traditionally be "ld a, b" would become "A B LDrr,". |
|
|
|
|
|
|
|
Those opcode words, of which there is a complete list below, end |
|
|
|
with "," to indicate that their effect is to write (,) the cor- |
|
|
@@ -138,3 +138,24 @@ RR RRC SRL RRA RRCA |
|
|
|
CALL RST DJNZ |
|
|
|
DI EI EXDEHL EXX HALT |
|
|
|
NOP RET [,c] RETI RETN SCF |
|
|
|
|
|
|
|
# 8086 assembler |
|
|
|
|
|
|
|
Load with "30 LOAD". As with the Z80 assembler, it is incom- |
|
|
|
plete. |
|
|
|
|
|
|
|
Mnemonics are followed by argument types. For example, MOVri, |
|
|
|
moves 8-bit immediate to 8-bit register. |
|
|
|
|
|
|
|
'r' = 8-bit register 'x' = 16-bit register |
|
|
|
'i' = 8-bit immediate 'I' = 16-bit immediate |
|
|
|
's' = SREG register |
|
|
|
|
|
|
|
Mnemonics that only have one signature (for example INT,) don't |
|
|
|
have operands letters. |
|
|
|
|
|
|
|
For jumps, it's special. 's' is SHORT, 'n' is NEAR, 'f' is FAR. |
|
|
|
|
|
|
|
# 8086 Instructions list |
|
|
|
|
|
|
|
TODO |