Introduction to Programming

X52_9239_003

Summer 98

 

Homework 2 - Solution

 

 

Problem #8, p. 84:

a) 1855

b) 2855

c) A403

d) 80F2

e) BB31

Problem #10, p. 84:

a) Load register 3 with hexadecimal value 02

b) 00000010 (hex 2)

Problem #13, p. 85:

20 microseconds

Problem #18, p. 86:

  1. 20C0 - LOAD register 0 with C0
  2. 3004 - STORE the contents of register 0 ("C0") into memory address 04
  3. C000 - HALT program

Problem #20, p. 86:

The contents of address 00 is copied into address 10.

The contents of address 01 is copied into address 11.

The contents of address 02 is copied into address 12.

Problem #26, p. 86: (Extra Credit)

a) 04h

b) 82h

c) FCh

d) 08h

e) F4h