assemblymipsqtspimpcspim

Identify original text, assembled code and machine code in QtSPIM simulator


I am using QtSPIM to learn assembly language. An screenshot of PC SPIM text segment

How can I identify which part of this line is the original text, assembled code and machine code? What are the major difference between assembled code and machine code?

I have used ChatGPT and it gives me the same answer as below: Assembled Version (Machine Code): 0x8fa40000 Machine Code Version (Hexadecimal): 0x8fa40000


Solution

  • Each line is one 32-bit machine code instruction.

    The part in []s is the memory address for the insrtuction.

    After is a hex value of the instruction encoding, which we would call the machine code instruction.

    Following is a disassembly of that instruction.

    And finally, the source code assembly.