lecture19

lecture19 - FoundationsofEmbeddedSystems ATermFall2008

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Foundations of Embedded Systems A Term Fall 2008 Reading for Today: User's Guide Ch 3.3,3.4 Reading for Next Class: User's Guide Ch 3, EW430_AssemblerReference.pdf Lab #3 (on Web) :                  Report due Tuesday 10/7/2008 HW #5 (on Web): Due next Thursday 10/9/2008    Last Class:   Software Architecture of a  P:  Everything you need to know program it   1) CPU Registers   2) Memory model   3)  Address modes    Assembly Instructions are mapped 1-to-1 with machine's binary opcodes     label     < instruction mnemonic >    src,  dest  ;  comments                              >> Address Modes :   The ways the  src  and  dest  operands of instruction are specified     --> MSP430 has 7 Address Modes for   src  operands and 6 for  dest  operands Register Mode  = Both  src  and  dest  operands are CPU registers (fast for CPU) MOV.W    R14, R15      ;  R15 = copy of R14 Immediate Mode = Assigns fixed value to CPU register or memory location ( src  only) MOV    #9999, R15      ;  R15 = 9999 decimal ADD    #10h, R15        ;  R15 = 9999 decimal + 10h = 10015 decimal Symbolic Mode/Absolute Mode  = Accessing a memory location using its label  MOV   R15, FOO     ; copy the contents of R15 to memory location labeled FOO  MOV   R15, &FOO  ; copy the contents of R15to memory location at the address             ; labeled FOO 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/27/2008 for the course ECE 2801 taught by Professor Jarvis during the Fall '08 term at WPI.

Page1 / 7

lecture19 - FoundationsofEmbeddedSystems ATermFall2008

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online