What’s the the binary and the hexadecimal representation of machine code of the following MIPS instruction?

Author: Amy Adams  //  Category: Machine code

It’s MIPS assembly language.

What’s the binary and the hexadecimal representation of machine code of the following MIPS instruction?

Add $t0,$t0,$zero

I have absolutely no idea.

Hi,

You can use an assembler and a hex editor to easily find out. For instance, you can use GAS (the GNU assembler – what GCC uses as its backend) to assemble this (you might need to build cross-binutils for MIPS in order to do this).

Cheers,
Bogdan

What is the difference between source code and machine code?

Author: Amy Adams  //  Category: Machine code

Please colud you explane to me that is the difference between source code and machine code.

Thank you

Source code is text written in a computer programming language. source code is written by programmers.
Machine code is a system of instructions and data executed directly by a computer’s central processing unit. Usually compilers and interpreters convert the source code into machine code. machines can only understand 0 and 1.