Question: 1. [5] Write a possible assembly language instruction or set of instructions to accomplish the following: a) Move the word stored at memory location pointed

 1. [5] Write a possible assembly language instruction or set of

1. [5] Write a possible assembly language instruction or set of instructions to accomplish the following: a) Move the word stored at memory location pointed to by R6 into register R5 b) Compare the upper byte stored in R5 with the byte stored at the memory location pointed to by register R4. c) Check if values in registers R9 and R10 are equal, and if equal, branch to a subroutine called DOTHIS" d) Branch to instruction at label ZERO' if the lower byte of register R6 is zero c) Jump to the instruction at label 'ODD' if the value in register R7 is an odd number 2. [5] Write an assembly language program to add the two halves (upper and lower bytes) of register R5. The program should store the result in the upper byte of register R6, and clear the lower byte of R6. The program is expected to preserve the data of register R5. Please write clearly and include comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!