Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 정처기
- 컴퓨터구조
- ROS2
- homogeinous
- 3dof
- segmentation
- 정렬
- Coding
- homogenous
- Linux
- humble
- 리눅스
- CentOS
- 기구학
- sort
- 합병
- Computer
- AI
- 맥케이브
- sam2
- 정보처리기사
- 명령어
- 회전 복잡도
- Java
- MIPS
- robotics
- 네트워크 충돌
- 알고리즘
- SQL
- 소스 코드 품질 분석
Archives
- Today
- Total
UTF-404
MIPS (1) 본문
728x90
💡Write a MIPS program that results in the following when running your MIPS program.
➡️ 이번 과제는 MIPS 언어를 활용하여 위의 결과 화면과 같이 나오게 하면된다.
첫번째 줄에는 자신의 학번(Student ID)를 출력하는 것이다.
두번째와 세번째는 각각 숫자를 입력받을 수 있도록 한다.
마지막으로 앞서 입력 받은 숫자를 더한 값을 최종 결과값으로 출력하는 것이 이번 과제의 핵심 목표이다.
확장자는 .asm 파일로 저장하면 된다.
📍 MIPS 언어란?
MIPS(Microprocessor without Interlocked Pipeline Stages)란 MIPS Technologies에서 개발한 RISC 계열의 명령어 집합 체계이다.
MIPS 명령어 체계는 굉장히 깔끔하게 설계되어 있기 때문에 많은 대학교의 컴퓨터 아키텍처 과목에서 가르치고 있다.
<참고>
MIPS
개요 MIPS(Microprocessor without Interlocked Pipeline Stages)란 MIP
namu.wiki
.data
studentid: .asciiz "My student ID is B993132 \n"
prompt1: .asciiz "Please, type 1st number: "
prompt2: .asciiz "Please, type 2nd number: "
result: .asciiz "The result is: "
.text
main:
li $v0, 4
la $a0, studentid
syscall
li $v0, 4
la $a0, prompt1
syscall
li $v0, 5
syscall
move $t0, $v0
li $v0, 4
la $a0, prompt2
syscall
li $v0, 5
syscall
move $t1, $v0
add $t2, $t0, $t1
li $v0, 4
la $a0, result
syscall
li $v0, 1
move $a0, $t2
syscall
li $v0, 10
syscall
728x90