Question: SPARC is lacking a number of instructions commonly found on CISC machines. Some of these are easily simulated using either register R0, which is always
SPARC is lacking a number of instructions commonly found on CISC machines. Some of these are easily simulated using either register R0, which is always set to 0, or a constant operand. These simulated instructions are called pseudo instructions and are recognized by the SPARC compiler. Show how to simulate the following pseudo instructions, each with a single SPARC instruction. In all of these, src and dst refer to registers.
a. MOV src, dst
b. COMPARE src1, src2
c. TEST src1
d. NOT dst
e. NEG dst
f. INC dst
g. DEC dst
h. CLR dst
i. NOP
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
a OR src with Go and store the result in dst b SUBCC src2 from src1 a... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
896-C-S-S-A-D (2583).docx
120 KBs Word File
