hw2.s10 - CPE/EE 323 Introduction to Embedded Computer...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: CPE/EE 323 Introduction to Embedded Computer Systems Homework II 1(25) 2(40) 3(35) Total __ __ __ ____ Problem #1 (25 points) Consider the following assembly directives (see below). Show the content of relevant region of memory initialized by these directives. MSP430 is a little-endian architecture. Fill in the table below. ORG 0xF000 b1: DB 5 ; allocates a byte in memory and initialize it with 5 b2: DB -122 b3: DB 10110111b ; binary value of a constant b4: DB 0xA0 b5: DB 123q ; octal value of a constant EVEN tf EQU 25 w1: DW 32330 w2: DW -32000 dw1: DL -100000 ; Allocates a long word size constant in memory dw2: DL tf s1: DB 'ABCD' ; Allocates 4 bytes in memory with string ABCD s2: DB "abcd" ; Allocates 5 bytes in memory Label Address [hex] Memory[7:0] [hex] b1 0xF000 0x05 b2 0xF001 0x86 Problem #2 (40 points) Consider the following instructions given in the table below. For each instruction determine its length (in words), the instruction words (in hexadecimal), source operand addressing mode, and the content of register R7...
View Full Document

  • Spring '10
  • Milenkovic
  • SEPTA Regional Rail, Binary numeral system, Machine code, Constant of integration, Addressing mode, R7 MOV.B R5

{[ snackBarMessage ]}

Page1 / 3

hw2.s10 - CPE/EE 323 Introduction to Embedded Computer...

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

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