PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: stock market

PROGRAMMING THE MICROCONTROLLER

Back to document page

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.

EMCH 367 Fundamentals of Microcontrollers 367pck S01.doc Dr. Victor Giurgiutiu Page 20 1/17/01 The <LABEL> is a very powerful concept that can greatly simplify the programmer’ s task. The <LABEL> consists of a string of alphanumeric characters that make up a name somehow meaningful to the programmer.

  Programming, Fundamentals, Microcontrollers, Programming the microcontroller

Download PROGRAMMING THE MICROCONTROLLER


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries