Transcription of Chapter 2 HCS12 Assembly Language - TTU CAE Network
{{id}} {{{paragraph}}}
Dr. Mohamed 2 HCS12 Assembly LanguageECE Assembly Language program Data transfer Arithmetic Branch and loop Shift and rotate Boolean logic Bit test and manipulate Subroutines 2 - 1- Commands to the assembler- Are not executed by the microcontroller are not converted to machine codes- Define program constants and reserve space for variable1- Assembler directives 1. Org (origin)- Tells the assembler where to place the next instruction/data in memory-Example: org $1000ldab #$FF ;this instruction will be stored inmemory starting from location $ (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.
1. Problem definition: Identify what should be done 2. Identify the inputs and outputs 3. Develop the algorithm (or a flowchart): - The overall plan for solving the problem at hand. - A sequence of operations that transform inputs to output expressed in the following format (pseudo code): 4- Software Development Process 4.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}