Welcome to Westonci.ca, the place where your questions find answers from a community of knowledgeable experts. Discover comprehensive answers to your questions from knowledgeable professionals on our user-friendly platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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.