lecNew-18-AddrMode

lecNew-18-AddrMode - WPI ECE2801 Foundations of Embedded...

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

View Full Document Right Arrow Icon
WPI ECE2801 Foundations of Embedded Computer Systems Lecture 18: Introduction to Assembly Language and MSP430 Addressing Modes
Background image of page 1

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

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 9 Programmer’s model of CPU CPU=Registers Inside the CPU, there are sixteen 16-bit registers R0 to R3 have dedicated functions. R4 to R15 are working registers In order to program Instruction set Memory organization Addressing modes
Background image of page 2
EE2801: Foundations of Embedded Systems Lecture 18 CPU Registers R0: PC (Program Counter) A.k.a. IP (Instruction Pointer), hold the address of the next instruction to be fetched CPU automatically fetches the instruction and automatically increases PC to point to the next instruction May be changed by program R2: SR (Status Register) Indicate the latest result of CPU operation. V: Overflow N: Negative Z: Zero C: Carry
Background image of page 3

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

View Full DocumentRight Arrow Icon
EE2801: Foundations of Embedded Systems Lecture 18 General Purpose Registers R4-R15 are general purpose registers Can be used to hold data, address (address pointer), or index values Can be accessed with byte or word instruction When used for byte operations, use the low byte of the register.
Background image of page 4
EE2801: Foundations of Embedded Systems Lecture 18 MSP430 Instruction Syntax Lines of code Label: Instruction
Background image of page 5

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

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

Page1 / 16

lecNew-18-AddrMode - WPI ECE2801 Foundations of Embedded...

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

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