Design a new instruction to manually compute the 2s compleme

Design a new instruction to manually compute the 2\'s complement of a given value. Implement this new instruction as a Macro called TWOS_COMP, and show the macro definition below (provide assembly instructions). Your macro should be of the form: TWOS_COMP Literal, Register: This accepts 2 parameters and returns the two\'s complement value into the Register. Use your new instruction designed in part a, to properly compute the 2\'s complement of the value 0 times 77. Show the two\'s complement value below, and any Intermediary values contained in your macro (show the computation taking place on each instruction of your assembly code). Create a short main program and call your macro created in part a.

Solution

In Microsoft Office Word 2007, you can automate frequently used tasks by creating and running macros. A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically.

Typical uses for macros are:

To speed up routine editing and formatting

To combine multiple commands — for example, to insert a table with a specific size and borders, and with a specific number of rows and columns

To make an option in a dialog box more accessible

To automate a complex series of tasks

 Design a new instruction to manually compute the 2\'s complement of a given value. Implement this new instruction as a Macro called TWOS_COMP, and show the mac

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site