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. sinceli
pseudo-instruction, translated assembler 1 or more actual mips instructions (in caseori $2, $0, 4
).
Comments
Post a Comment