Homework #1 - 3. Write the stack architecture...

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

View Full Document Right Arrow Icon
Homework 1 (Due: 2/5, 100 pts) 1. 1.1 ~ 1.28 (28 pts) 1.1) 5 CPU 1.2) 1 abstraction 1.3) 3 bit 1.4) 8 computer family 1.5) 19 memory 1.6) 10 datapath 1.7) 9 control 1.8) 11 personal computer 1.9) 15 embedded system 1.10) 22 server 1.11) 18 LAN 1.12) 27 WAN 1.13) 23 supercomputer 1.14) 14 DRAM 1.15) 13 defect 1.16) 6 chip 1.17) 24 transistor 1.18) 12 DVD 1.19) 28 yield 1.20) 2 assembler 1.21) 20 operating system 1.22) 17 instruction set architecture 1.23) 25 VLSI 1.24) 16 instruction 1.25) 4 cache 1.26) 7 compiler 1.27)21 semiconductor 1.28) 26 wafer
Background image of page 1

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

View Full DocumentRight Arrow Icon
2. 1.29 ~ 1.45 (17 pts) 1.29) i systems software 1.30) b high-level language 1.31) e output device 1.32) i systems software 1.33) h supercomputer 1.34) d integrated circuit 1.35) f personal computer 1.36) b high-level language 1.37) c input device 1.38) f PC 1.39) d integrated circuit 1.40) a app software 1.41) c input device 1.42) i systems software 1.43) e output device 1.44) g semiconductor 1.45) a app software
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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3. Write the stack architecture pseudo-assembly code for the following C code. (10 pts) A = B + C; B = A + C; push B push C add stack pop A push A push C add stack pop B 4. Write the accumulator architecture pseudo-assembly code for the above C code. (10 pts) load B add C store A add C store B 5. Write the memory-memory architecture pseudo-assembly code for the above C code. (10 pts) load R1, B load R2, C add R3, R1, R2 store R3, A add R1, R3, R2 store R1, B 6. Write the load-store architecture pseudo-assembly code for the above C code. (10 pts) load B add C store A add C store B 7. Convert 57 ten into a 32-bit twos complement binary number. (5 pts) 0000 0000 0000 0000 0000 0000 0011 1001 = 57 ten 8. What is the decimal number for abcd abcd hex ? Use twos complement representation. (10 pts) 2882382797 1010 1011 1100 1101 1010 1011 1100 1101...
View Full Document

Page1 / 4

Homework #1 - 3. Write the stack architecture...

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

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