학교생활/컴퓨터 구조

컴퓨터 구조 - SPIM

연 동 2023. 9. 17. 20:23

SPIM = MIPS simulator

파일명 : addi.s

내용: 

#addi.s

.text
.global main
main:
	addi $t0, $0, 10
    addi $t1, $0, 16
    add $t2, $t0, $t1

결과화면:

#[메모리주소]/메모리에저장된값/메모리에저장된값을 disassemble한것/sourcefile의 줄:sourcefile에 쓰인 내용

[00400024] 2008000a addi $8, $0, 10	#4:addi $t0, $0, 10
[00400028] 20090010 addi $9, $0, 16	#5:addi $t1, $0, 16
[0040002c] 01095020 add $10, $8, $9	#6:add $t1, $t0, $t1

addi.s를 실행한 이후의 SPIM 화면

 

728x90