Question: asm code please. Write a procedure called HexOutput that displays the content of register EBX in hexadecimal string. See the algorithm's pseudocode in Slide-51 of

asm code please.

asm code please. Write a procedure called HexOutput that displays the content

Write a procedure called HexOutput that displays the content of register EBX in hexadecimal string. See the algorithm's pseudocode in Slide-51 of Chap 06 (Lecture-9). A full solution for the binary case (BinOutput) also appears in Slide-48 and Slide-49 of that lecture (I have explained and traced this solution in classroom). For example. If EBX contains 1111 1110 0000 0001 1100 1000 0011 0111, then the procedure HexOutput should display the hexadecimal string "FE01C837h" Write a procedure called HexInput that loads the register EAX with the numerical value of the hexadecimal string entered at the keyboard. See the algorithm's pseudocode in Slide-52 of Chap 06 (Lecture-9). A full solution for the binary case (BinInput) also appears in Slide-50 of that lecture (I have explained and traced this solution in classroom). For example: EAX is loaded with 1111 1110 0000 0001 1100 1000 0011 0111, when the procedure HexInput reads the hexadecimal string "FE01C837h" To test these two procedures, above, your main program should first ask you What do you want to do? If you type the letter W (or w) then the main program reads an unsigned 32-bit decimal number from the keyboard, and loads the number into EBX, and then calls the procedure HexOutput (which displays an hexadecimal string). If you type the letter R (or r) then the main program calls the procedure HexInput (which reads a string from the keyboard and loads into EAX), and then displays the binary content of register EAX It exits with "Get Lost Sweetey Honey" if you type anything else. In a and b above, the main program exits with "Thank you Sweetey Honey

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!