What is the mips assembly code, Computer Engineering

Assignment Help:

Question:

(a) Using an appropriate diagram, illustrate the structure of an instruction used for branching purposes and state the purpose of each part.

(b) Given the number 104345 needs to be loaded in the memory address pointed by the Base Address of $s2 by an offset of 8 bytes. Provide the instructions to perform this operation.

(c) Translate the following Assembly instructions in machine language instructions. Describe every step involved in the conversion process.

i. sw $t5, 32($s1)
ii. bne $t3,$s3,L4 (given that L4 is at line 253)

Consult appendix at the end of this question paper for R, I, J types (formats) and table of registers.

(d) The following machine language instructions have been inspected by a hacker during its transmission on an insecure network. Given that it may involve sensible data, you have been assigned the task to write its equivalent Assembly instruction.

00100010111010110000000010011110

(e) Consider the following C segment:

loop: g = 12 + B[8] - A[i];
i = i +j;
if (i!=h) goto loop;

A is an array of 80 elements. Variables g, h, i and j are associated with registers $S1, $S2, $S3 and $S4 respectively. Base of array A is $S5 and that of B is $S6. What is the MIPS assembly code for this C loop?


Related Discussions:- What is the mips assembly code

Differentiate between compiler and interpreter, (i) Compiler and Interpret...

(i) Compiler and Interpreter: These are two types of language translators. A compiler changes the source program (user-written program) into an object code (machine language b

Smtp vs esmtp, what shortcomings of smtp are over come by esmtp?

what shortcomings of smtp are over come by esmtp?

Distinguish between min terms and max terms, Distinguish between min terms ...

Distinguish between min terms and max terms. Ans Differentiate between Minterms and Maxterms: a. Each single term in standard Sum Of Products (SOP) form is termed as minterm

My project has not working, my project is in .net of lan chatting its have ...

my project is in .net of lan chatting its have tcp\ip connection problem

Electronic brokerage facilitate search and retrieval, How does electronic b...

How does electronic brokerage facilitate search and retrieval of information? E Brokerage facilitates search and retrieval of Information: The success aspect of a brokera

Determine the simulation factor- weather, Determine the simulation factor- ...

Determine the simulation factor- Weather Illustration of simulation is predicting weather (i.e. a weather forecaster). In this case we will consider what/how data is collected,

Internal conditioning, types of internal conditioning with explanations and...

types of internal conditioning with explanations and examples

Massively parallel system and scalability, Massively Parallel System Re...

Massively Parallel System Refers to a parallel computer system having a great number of processors. The number in a great number of keeps increasing and currently it means more

Illustrate benefits of register addressing mode, Q. Illustrate benefits of ...

Q. Illustrate benefits of register addressing mode? The key benefits of register addressing are: Register access is faster than memory access and henceforth register add

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd