Question
Microproccesor: HCS12 More important to show on paper than to write the program. Show on paper means show what happens to A,B,etc. as program processes.
Microproccesor: HCS12
More important to show on paper than to write the program. Show on paper means show what happens to A,B,etc. as program processes.
1) Write a program which prompts user to enter a character, if the user presses "W?, the program calls a subroutine which loads a value $3D in register "A?, XOR's register A with $6F and displays the result in hexadecimal result on screen.
2) Write a program which prompts user to enter a character, if the user presses "X?, the program calls a subroutine which loads a value $3D in register "A?,logically shift left register A and displays the result in hexadecimal result on screen.
3) Write a program which prompts user to enter a character, if the user presses "Y?, the program calls a subroutine which loads a value $3B in register "A?,arithmetically shifts right register A and displays the result in hexadecimal result on screen.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started