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
728x90
'학교생활 > 컴퓨터 구조' 카테고리의 다른 글
컴퓨터 구조 - MIPS 명령어들 정리(지금까지 배운 것) (0) | 2023.09.17 |
---|---|
컴퓨터 구조 - substraction (0) | 2023.09.17 |
컴퓨터 구조 - signed/unsigned bit (0) | 2023.09.17 |
컴퓨터 구조 - MIPS Arithmetic Instructions (0) | 2023.09.17 |
컴퓨터 구조 - 개요 (0) | 2023.09.17 |