Text preview for : NEC_APC_CPM86_Programmers_Guide_Aug83.pdf part of NEC NEC APC CPM86 Programmers Guide Aug83 NEC APC NEC_APC_CPM86_Programmers_Guide_Aug83.pdf



Back to : NEC_APC_CPM86_Programmers | Home

~~ Advanced
A __ Personal Computer
-..TM




CP/M-86 User/Programmer's Guide




NEe
NEe Information Systems,'nc.
819-000100-4001 Rev.01
8-83
Contents
Page
Chapter 1 Introduction
ASSEMBLER OPERATION ......................................... 1-1
OPTIONAL RUNTIME PARAMETERS ............................... 1-3
ABORTING ASM-86 ................................................ 1-4

Chapter 2 Elements of ASM-86 Assembly Language
ASM-86 CHARACTER SET ......................................... 2-1
TOKENS AND SEPARATORS ....................................... 2-1
DELIMITERS ...................................................... 2-1
CONST ANTS ...................................................... 2-3
Numeric Constants .............................................. 2-3
Character Strings ................................................ 2-4
Identifiers ...................................................... 2-4
Keywords ...................................................... 2-5
Symbols and Their Attributes ..................................... 2-6
OPERATORS ...................................................... 2-8
Operator Examples .............................................. 2-12
Operator Precedence ............................................. 2-15
EXPRESSIONS ..................................................... 2-16
STATEMENTS ..................................................... 2-17

Chapter 3 Assembler Directives
INTRODUCTION .................................................. 3-1
SEGMENT START DIRECTIVES .................................... 3-1
The CSEG Directive ............................................. 3-2
The DSEG Directive ............................................. 3-2
The SSEG Directive ............................................. 3-3
The ESEG Directive ............................................. 3-3
THE ORG DIRECTIVE ............................................. 3-3
THE IF AND ENDIF DIRECTIVES .................................. 3-4
THE INCLUDE DIRECTIVE ........................................ 3-4
THE END DIRECTIVE ............................................. 3-5
THE EQU DIRECTIVE ............................................. 3-5




iii
Contents (cont'd)
Chapter 3 Assembler Directives (cont'd)
Page
THE DB DIRECTIVE ............................................. 3-5
THE DW DIRECTIVE ............................................. 3-6
THE DD DIRECTIVE ............................................. 3-6
THE RS DIRECTIVE .............................................. 3-7
THE RB DIRECTIVE ............................................. 3-7
THE RW DIRECTIVE ............................................. 3-7
THE TITLE DIRECTIVE .......................................... 3-8
THE PAGESIZE DIRECTIVE .................... ..1