Tải bản đầy đủ (.doc) (2 trang)

Bài tập Kỹ thuật vi xử lý - DTVT - BKDN (bài01)

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (46.41 KB, 2 trang )

Microprocessors Semester 2 2011-2012
Homework 1 Due Date: 14 February 2012
MSP430 ISA
MSP430 Architecture

Name

Questions:

Answers:

Class

Score

/ 10

1. (1 points) Disassemble the following 25
memory words: (Hint: There are 13 instructions.
Make up your own labels. Use hexadecimal
notation for constants and absolute locations.)
0x809c:
0x809e:
0x80a0:
0x80a2:
0x80a4:
0x80a6:
0x80a8:
0x80aa:
0x80ac:
0x80ae:


0x80b0:
0x80b2:
0x80b4:
0x80b6:
0x80b8:
0x80ba:
0x80bc:
0x80be:
0x80c0:
0x80c2:
0x80c4:
0x80c6:
0x80c8:
0x80ca:
0x80cc:

8392
0200
2005
40B2
03E8
0200
E3E2
0021
9382
0202
240D
D3D2
0021
E0F2

0010
001D
8392
0202
2005
C3D2
0021
C0B1
0010
0000
1300

2. (1 points) If the value in R4 is 0x0008, what
will the value be in R5 after executing the
following 5 lines of binary code? What does the
binary program do?
0100 0100 0000 0101
0101 0101 0000 0101
0101 0101 0000 0101
0101 0100 0000 0101
0101 0101 0000 0101
3. (1 points) When does addition generate an
OVERFLOW condition as defined by 2’s
complement addition?

Microprocessors

Homework 1

Page 1/2



4. (1 points) What is the difference between PCrelative and register-indexed addressing modes?
How are they the same? How do they differ?

5. (1 points) Since the MSP430 ISA uses only 1
bit for selecting the destination address mode,
how are four destination addressing modes
defined?

6. (1 points) The MSP430 ISA could define the
following instruction as either a 1 word or 2 word
instruction. Explain.

mov.w #1,R4

7. (1 points) What does the MSP430 do with the
following operand?

@R2+

8. (1 points) Why are output ports on the
MSP430 readable? What advantage does this
have?

9. (1 points) Which MSP430 I/O ports have
interrupt capability?
10. (1 points) Some computer ISA’s define
special instructions for I/O. The MSP430 does
not. How then does the MSP430 communicate

with I/O devices? What advantage does this
have?

Microprocessors

Homework 1

Page 2/2



×