CS3421 Problem Set 3

Instruction Encoding

  1. Convert the following instructions to assembly language. Assume each instruction is shown in hexadecimal, and that the number preceeding the instruction is the address, in decimal, of the instruction in memory.

  2. Encode the following assembly language program. Show each instruction in hexadecimal, with the address of the first byte of each instruction, in decimal, preceeding it (as shown in the preceeding problem). Assume the first instruction will be at memory location 0.