Question: Write a program to calculate the target address (in hexadecimal) of an SIC/XE object command. The program should prompt the user to enter the values
Write a program to calculate the target address (in hexadecimal) of an SIC/XE object command. The program should prompt the user to enter the values of the program counter, base register, and index register (in hexadecimal) whenever they are needed. Example, for the following input
17202D
The program should prompt the user to enter the program counter value, if 3 is entered, the program should display
30
To accomplish this project, you should extract both displacement and bit flags then handle the impact of these bit flags on calculating the target address.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
