HW_2_Solutions

HW_2_Solutions - a). The last address of the ROM =

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

View Full Document Right Arrow Icon
ECE252 Microprocessor Fall 2008 Homework #2 Solutions, 100 Points Due on Sep. 16, 2008 1. Chapter 2, Problems: 3, 5, 8, 10, 13, 14, 19, 23 (80 pts) Solutions: 3. (10pts) Each user gets 32KB of RAM. The operating system does require some RAM for its own use. One way to do this is to allocate a small portion of each user’s RAM for operating system functions. The other option is reserve a specific portion of RAM just for the operating system. 5. (10pts) The .B, .W, and .L extensions specify the operand size (byte, word, and long word) for an instruction. 8. (10pts) The byte stored at address $2F is $05 and the byte at $33 is $07. 10. (10pts) The byte at address $9001 has value $34. 13. (10pts) The condition codes (X, N, Z, V, C) are contained in the user byte of the status register. 14. (10pts) The system byte of status register contains 1 trace bit, 1 supervisor state bit, and 3 bits for interrupt mask. 19. (10pts)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a). The last address of the ROM = $000000+128K-1=$000000+$020000-1=$01FFFF The last address of the RAM = $200000+64K-1=$200000+$010000-1=$20FFFF The last address of the I/O block = $7C0000+2K-1=$7C0000+$000800-1=$7C07FF $000000 128KB ROM $01FFFF $020000 $200000 64KB RAM $20FFFF $210000 $7C0000 2KB I/O $7C07FF 23. (10pts) In big-endian system, the higher bytes of a word or a longword are stored in the lower addresses of the memory space allocated for that word or longword. However, little-endian system uses a reverse order of above for storing a word or longword into the memory. 2. Install EASy68K IDE and practice with EASy68K, 2.1 Type up, assemble and simulate the HELLO program given in Lecture notes. Submit your solution in the required solution format. (10 pts) Solution: 2.2 Write a program to print out your first name and last name. Submit your solution in the required solution format. (10 pts) Solution:...
View Full Document

This note was uploaded on 02/18/2010 for the course ECET 252 taught by Professor Hu during the Spring '10 term at NJIT.

Page1 / 5

HW_2_Solutions - a). The last address of the ROM =

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

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