Docsity

Programming Model, Assembly Language, Instruction Execution Cycle | EE 4390, Study notes of Microprocessors

Toggle sidebar
bg1
Revised: Aug 1, 2003 1
EE4390 Microprocessors
Lesson 4
Programming Model, Assembly Language,
Instruction Execution Cycle
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Programming Model, Assembly Language, Instruction Execution Cycle | EE 4390 and more Study notes Microprocessors in PDF only on Docsity!

Revised: Aug 1, 2003^

EE4390 MicroprocessorsLesson 4Programming Model, Assembly Language,Instruction Execution Cycle

Revised: Aug 1, 2003^

Overview

• Programming Model• Motorola Assembly Language• Instruction Execution Cycle

Revised: Aug 1, 2003^

Programming Model (cont)• A, B: 8-bit accumulators– collectively D: 16-bit register• X, Y: 16-bit index registers• SP: 16-bit stack pointer• PC: 16-bit program counter• CCR: 8-bit Condition Code Register

Revised: Aug 1, 2003^

Programming Model (cont)• Condition Code Register - Reference Appx A

Revised: Aug 1, 2003^

Motorola Assembly LanguageLabel^ Op-Code

Operand(s)^

Comment

start:^ LDAA

#FC^

;load acc A

•^ Label: name for a memory location•^ Op-Code: mnemonic, action part of instruction•^ Operand: access to data for instruction via addressingmode•^ Comment: “;” indicates comment follows–^ can also be used at the beginning of a line

Revised: Aug 1, 2003^

Assembly vs C• Assembly:– better HW control, faster• C:– more readable– Top-Down Design– more efficient programming– do not need to know HW details

Revised: Aug 1, 2003^

“The Big Picture”ICC12 - host PCcompiler assembler

filename.cfilename.hfilename.asmfilename.asmfilename.lstfilename.s19comm link via SCIA4 EVB•HW•SW•DEBUG

daughterfabcardarea

Revised: Aug 1, 2003^

ICC12 Specific Items.area name(abs).org $1000_main::loop::;sample program

Revised: Aug 1, 2003^ Memory Map - A4 Evaluation Board^ “Copyright of Motorola, Used by Permission”