Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In problems 3 through 8 below assume that new OP Codes have been assigned for some new MAC-1 machine instructions and that these instructions have
In problems 3 through 8 below assume that new OP Codes have been assigned for some new MAC-1 machine instructions and that these instructions have been fetched into the IR during an instruction fetch cycle, that they have been completely decoded, and that a microprogram jump has occurred to the control store starting address for their execution sequences. Write the MAL routines that accomplish execution of each of these new MAC-1 instructions. Execution is complete when an unconditional transfer of control back to the start of the instruction fetch sequence occurs. 9. Now assuming a 2's complement representation of negative numbers (and the Mac-1 instruction set does so) implement execution of the machine instruction: ASHR2 as in problem 8 for this case. The difference is that if the number in ac is negative (i.e. ac15 1) and the rightmost bit in ac is a 1 (i.e., aco 1) prior to the right shift, then we must add 1 to the resulting aco position and propagate the carry after the right shift. If aco 0 before the right shift, then everything is the same as in ASHR1. In other words, if a 1 falls out the right end of the ac during the ASHR of a negative number, then we must add it back into the result in the ac. Sign bit preservation on ac15 is the same in ASHR1 and ASHR2. Assume control store locations 190 and above 190 are available for this. In problems 3 through 8 below assume that new OP Codes have been assigned for some new MAC-1 machine instructions and that these instructions have been fetched into the IR during an instruction fetch cycle, that they have been completely decoded, and that a microprogram jump has occurred to the control store starting address for their execution sequences. Write the MAL routines that accomplish execution of each of these new MAC-1 instructions. Execution is complete when an unconditional transfer of control back to the start of the instruction fetch sequence occurs. 9. Now assuming a 2's complement representation of negative numbers (and the Mac-1 instruction set does so) implement execution of the machine instruction: ASHR2 as in problem 8 for this case. The difference is that if the number in ac is negative (i.e. ac15 1) and the rightmost bit in ac is a 1 (i.e., aco 1) prior to the right shift, then we must add 1 to the resulting aco position and propagate the carry after the right shift. If aco 0 before the right shift, then everything is the same as in ASHR1. In other words, if a 1 falls out the right end of the ac during the ASHR of a negative number, then we must add it back into the result in the ac. Sign bit preservation on ac15 is the same in ASHR1 and ASHR2. Assume control store locations 190 and above 190 are available for this
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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