Transcription of PROGRAMMING THE MICROCONTROLLER
{{id}} {{{paragraph}}}
EMCH 367 Fundamentals of microcontrollers 367pck Dr. Victor Giurgiutiu Page 18 1/17/01 PROGRAMMING THE MICROCONTROLLER ASSEMBLY LANGUAGE Assembly language is of higher level than machine language and hence easier to use. An assembly language code consists of a) Program statement lines b) Comment lines A program statement is a line that contains 4 fields in the following format: [<LABEL>] [<OPCODE MNEMONIC>] [<OPERANDS>] [;<comments>] or [<LABEL>] [<DIRECTIVE MNEMONIC>] [<OPERANDS>] [;<comments>] where [ ] indicates an optional field that may not be always required. The fields are separated by a tab or space. (Tab is recommended, since it ensures an orderly appearance to your code. For the same reason, when a field is not used, the tab or blank should still to be used, such that the fields of the same type stay aligned in same columns.) When writing <LABEL>, <OPCODE MNEMONIC> or <DIRECTIVE MNEMONIC>, and <OPERANDS>, use upper case characters.
Inherent Mode is implied and requires no programming action. Immediate Mode means that the number contained in the operand will be immediately used. Direct and Extended Modes use the number contained in the operand to signify an address where the required information should be retrieved from or deposited to. The Extended mode is automatically
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}