Assembly Language Programming 01 PDF
Assembly Language Programming 01 PDF
Chapter 3
Assembly language
programming
00:11:59
3.1 Introduction to Assembly
Assembler syntax
• Symbols:
⋄ Used as labels, constants, and substitution values and
stored in a symbol table.
⋄ A symbol name is a string of up to 200 alphanumeric
characters (A-Z, a-z, 0-9, $, and _), cannot contain
embedded blanks, is case sensitive.
⋄ The first character cannot be a number.
• Labels:
⋄ Labels are symbols.
Assembler syntax
• Labels:
⋄ Begined in column 1 and is optionally followed by a colon.
⋄ The value of a label is the current value of the Location
Counter (address within program).
⋄ A label on a line by itself is a valid statement.
⋄ Labels used locally within a file must be unique.
• Mnemonics:
⋄ Cannot start in column 1. If it does, it is interpreted as a label.
Assembler syntax
• Mnemonics:
⋄ Contains one of the following items: Instruction, Assembler
directive, Macro directive, Macro invocation.
⋄ A label on a line by itself is a valid statement.
⋄ Labels used locally within a file must be unique.
• Operands:
⋄ Contains one or more operands.
⋄ An operand may consist of: symbols, constants,
expressions.
⋄ Operands are separated with commas.
Microcomputer principles and applications
3.2 Instruction Cycle