At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Join our Q&A platform and get accurate answers to all your questions from professionals across multiple disciplines. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our 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.