{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture19 - ATermFall2008...

Info icon This 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 Lecture #19:  MSP430 Address Modes, CPU Registers & Instruction Set 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 
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern