Z80 Assembler User Guide
INTRODUCTION
CROSS ASSEMBLER
Assembler Source Code Format
Assembler Source Code Format
Label Field
Operation Field
Operand Field
Comment Field
Assembler Expressions
Assembler Expressions
Integer Numbers
Literals
Symbols
Examples
Assembly List Format
Assembly List Format
Page Header
Source and Object Code list
Page Width
Error Line
Symbol Table
Conditional Assembly
Assembler Macros
Introduction to Assembler Macros
Dummy Arguments
Dummy Labels
NARG Symbol
Memory Bank Switching
Bank Switching Method
Using the Section Directive
Setting up the Linker
Running the Assembler from the Command Line
LINKER
Overview and Command Line Operation
Default Filenames
Linker Response File
Linker Command Line Options
Generate Intel Hex Output (/HEX)
Generate OMF51 Output (/OMF)
Generate S Record Output (/SREC)
Generate IEEE Binary Output (/IEEE)
Generate IEEE ASCII Output (/IEEEA)
Generate Plain Binary Output (/BIN)
Output Debug Information (/DEBUG)
Generate Error File (/Fe)
Specify External Ram Limits (/RAM:)
Specify ROM Limits (/ROM:)
Place Program Code in External RAM (/NOROM)
Specify Segment Addresses and Order (/CODE /DATA)
Sort Map File in Address Order (/MOa)
Sort Map File in Name Order (/MOn)
MICROPROCESSOR INSTRUCTION REFERENCE
ADC A s
ADC HL ss
ADD
AND
BIT
CALL
CCF
CP
CPD
CPDR
CPI
CPIR
CPL
DAA
DEC
DI
DJNZ
EI
EX (SP) tt
EX AF AF
EX DE HL
EXX
HALT
IM
IN A (n)
IN r (C)
INC m
INC pp
IND
INDR
INI
INIR
INO r (n)
JP
JP (tt)
JR
LD
LD (kk) A
LD (nn) ss
LD A (kk)
LD I A
LD A I
LD m n
LD m r
LD RA
LD SP tt
LD ss (nn)
LD ss nn
LDD
LDDR
LDI
LDIR
MLT rr
NEG
NOP
OR A s
OTDM
OTDMR
OTDR
OTIM
OTIMR
OTIR
OUT (C) r
OUT (n) A
OUT0 (n) r
OUTD
OUTI
POP pp
PUSH pp
RES b m
RET cc
RETI
RETN
RL
RLA
RLC m
RLCA
RLD
RR m
RRA
RRC m
RRCA
RRD
RST p
SBC Am
SBC HL ss
SCF
SET b m
SLA m
SLP
SRA m
SRL m
SUB s
TST s
TSTIO
XOR s
ASSEMBLER DIRECTIVES
Assembler Directives
Assembly Options
Introduction
CLIST/NOLIST
LIST/NOLIST
LISTF
MC/NOMC
MD/NOMD
MEX/NOMEX
OBJ/NOOBJ
PAGE/NOPAGE
SYM
UNA/NOUNA
Other Assembler Directives
Introduction
COMMON
DEFL
DEFM
DEFS
DEFB
DEFW
ELSEC
END
ENDC
ENDM
EQU
FAIL
FIELDS
IFC/IFNC/IFIC/IFINC
IFcc
INCLUDE
MACR
NAME
OPT
ORG
PAGE
PAGEWIDTH
SECTION
SPC
TTL
XDEF
XREF