Looking for reliable answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Get expert answers to your questions quickly and accurately from our dedicated community of professionals. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

q. convert the given code fragment to assembly code fragment, using only instructions of the following types. these instructions are generally discussed in class. here x,y are any memory locations; r, r1, r2 are any general registers; l is a label in the code (you can use any names as labels, ex. l, l1, l2 etc. ). • load x, r //copy contents of memory location x into r. • store r, x //store contents of r into mem location x • cmp r1, r2 //compute r1-r2 and update condition codes; //throw away result of subtraction. • jmp l //jump to location l in the code. • jmpp l //if p bit is 1, jump to location l in the code • add x, r //add contents of x,r and store result in r; //also update the condition codes. be careful about what type of argument is allowed in the instruction (memory or register). ex. the first argument of add instruction is memory, not register.