6. Assume that you have an ALU with functionality as shown in the following table: OP Operations addq 60 subg 61 andg 6 2 or 6 A+B 001 A+NOT(B)+1 010 Not used 011Not used 100 A and B 101A OR B 110 A XOR B 1NOT(A) 63 xora 64 notq 65 ALU control is determined by the icode and ifun of an instruction. Determine the equations for OP2, OP1, OPO for pushq, popq, addq, subq, xorq, notq. orq, andq, mrmovq, rmmovq The icode and ifun values for each of the instructions are shown below Byte halt nop irmovq V, rB jxx Dest Dest call Dest 8 10 Dest ret popq rA

6. Assume that you have an ALU with functionality as shown in the following table: OP Operations addq 60 subg 61 andg 6 2 or 6 A+B 001 A+NOT(B)+1 010 Not used 011Not used 100 A and B 101A OR B 110 A XOR B 1NOT(A) 63 xora 64 notq 65 ALU control is determined by the icode and ifun of an instruction. Determine the equations for OP2, OP1, OPO for pushq, popq, addq, subq, xorq, notq. orq, andq, mrmovq, rmmovq The icode and ifun values for each of the instructions are shown below Byte halt nop irmovq V, rB jxx Dest Dest call Dest 8 10 Dest ret popq rA



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *