Transcription of Chapter 2 HCS12 Assembly Language - TTU CAE Network
{{id}} {{{paragraph}}}
Chapter 2. HCS12 Assembly Language ECE 3120. Dr. Mohamed Mahmoud Outline Assembly Language program structure Arithmetic instructions Branch and loop instructions Shift and rotate instructions Boolean logic instructions Bit test and manipulate instructions Assembler directives - Commands to the assembler - Not executable by the microprocessor are not converted to machine codes - Define program constants and reserve space for dynamic variable - Specifies the end of a program. 2-1. 1. end - Ends a program to be processed by an assembler - Any statement following the end directive is ignored 2. Org (origin). - Tells the assembler where to place the next instruction/data in memory - Example: org $1000. ldab #$FF ;this instruction will be stored in memory starting from location $1000. 3. (define constant byte), db (define byte), fcb (form constant byte). - Define the value of a byte or bytes that will be placed at a given location. - Example: 800 $11.
HCS12 Assembly Language ECE 3120. Outline 2.1 Assembly language program structure 2.2 Arithmetic instructions 2.3 Branch and loop instructions 2.4 Shift and rotate instructions 2.5 Boolean logic instructions 2.6 Bit test and manipulate instructions. 2 - 1 Assembler directives
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}