Question: Write a program which prompts user to enter a character, if the user presses W , the programcalls a subroutine which loads a value $
Write a program which prompts user to enter a character, if the user presses W the programcalls a subroutine which loads a value $D in register A XORs register A with $F and displays the result in hexadecimal result on screen. Write a program which prompts user to enter a character, if the user presses X the program calls a subroutine which loads a value $D in register Alogically shift left register A and displays the result in hexadecimal result on screen. Write a program which prompts user to enter a character, if the user presses Y the programcalls a subroutine which loads a value $B in register Aarithmetically shifts right register A and displays the result in hexadecimal result on screen.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
