Question: A machine has four general purpose register bank R = { r 0 , r 1 , r 2 , r 3 } and a

A machine has four general purpose register bank R={r0,r1,r2,r3} and a set oM={m0,m1,dots}. The instruction set comprises of following instructions CMPx,Y; compare x and Y where (xinR)??(Yin(RM)) JGT Ln; jump/branch if-greater-than to label Ln where nin{1,2,dots} JMP Ln; unconditional jump/branch to label Ln where nin{1,2,dots} SUB x,Y;xlarrx-Y where (xinR)??(Yin(RM)) MOV x,Y;xlarrY where Generate target code for from the three-address code of
A machine has four general purpose register bank

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!