Homework 7 - Macros/Bit Manipulation

Assignment

Write a program to:
  1. Input a 32-bit decimal number,
  2. Reverse the number using a macro that reverses the bits in a 32-bit value. Use bit manipulation instructions.
  3. Output the reversed value in decimal,
  4. Reverse the reversed value,
  5. Output the reversed reversed value in decimal. Because reverse is its own inverse, this provides a test that the reverse macro is working correctly.

Macro Requirements

IMPORTANT:

Turn In

  1. Cover page - Your name, date, and Homework 7.
  2. Assembler program - Well documented copy of the Hw7.asm file,
  3. Assembler listing - HW7.lst printed in landscape mode.
  4. Program output - Test using the values: 1, 2147483647, 1073741824, -1.

Hints


Document last modified: