














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Write an appropriate assembly language code for the following operation and interpret to Von Neumann IAS architecture X=Y*Z Where X->40 bit data and Y->40 bit data Result would be more than 40 bit.
add a, b, c ab+c mpy a, a, d sub a, a, e aad aa-e load a, b ab add a, c mpy a, d aa+c aad sub a, e aa-e load b Accb add c mpy d AccAcc+c AccAcc*d sub e AccAcc-e store a aAcc push b push c add push d mpy push e sub pop a 3-Address 2-Address 1-Address 0-Address
load b Accb add c mpy d AccAcc+c AccAccd sub e AccAcc-e store a aAcc Memory to Store Memory to encode M/As to Fetch M/As to Execute Memory Traffic 23=6 1+(13)=4^2 1 2+1= 23=6 1+(13)=4^2 1 2+1= 23=6 1+(13)=4^2 1 2+1= 23=6 1+(13)=4^2 1 2+1= 23=6 1+(13)=4^2 1 2+1= 30 20 10 5 15 23=6 1+(13)=4^ 2 1 3 23=6 1+(13)=4^2 1 1 1 0 0 0 23=6 1+(13)=4^2 1 1 1 0 0 0 23=6 1+(13)=4^2 1 1 1 0 0 0 23=6 1+(1*3)=4^2 1 33 23 10 5 15 push b push c add push d mpy push e sub pop a
Instructio n Format Memory to Store Memory to Encode M/As to Fetch M/As to Execute Memory Traffic 4-Address 45 39 24 9 33 3-Address 36 30 12 9 21 2-Address 36 28 12 12 24 1-Address 30 20 10 5 15 0-Address 33 23 10 5 15 Summary of 3-,2-,1-, and 0-Addresss instruction programming