assembly - PCSpim Text Window - What Does the Output Mean? -


in pcspim, when program executed, displays in text window line each instruction.

e.g. [0x00400028] 0x34020004 ori $2, $0, 4 ;13: li $v0, 4

that example loads 4 register $v0.

what ori $2, $0, 4 mean?

and 0x34020004 same command, in hexidecimal?

thanks.

[0x00400028] 0x34020004 ori $2, $0, 4 ;13: li $v0, 4 
  • 0x00400028 address instruction located.
  • 0x34020004 instruction word, i.e. 4 bytes encoding instruction.
  • ori $2, $0, 4 human-readable form of instruction, in case sets $2 (aka $v0) 4.
  • li $v0, 4 instruction typed in. since li pseudo-instruction, translated assembler 1 or more actual mips instructions (in case ori $2, $0, 4).

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -