일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- computer
- XML
- system
- javascript
- DS
- Pipelining
- DATAPATH
- Java
- github
- Algorithm
- instruction
- architecture
- MacOS
- react
- Linux
- DB
- for
- DoM
- function
- MIPS
- html
- while
- CSS
- php
- mysql
- data structure
- python
- Class
- control
- web
- Today
- Total
목록Arichitecture (4)
YYYEJI
OP code Function code Instruction format ↑↑↑ 위에 표들을 참고해서 문제를 푸시면 됩니다 ↑↑↑ Loop: add $t1, $s3, $s3 add $t1, $t1, $t1 add $t1, $s3, $s6 lw $t0, 0($t1) bne $t0, $s5, Exit add $s3, #s3, #s4 j Loop Exit: Q1) add $t1, $s3, $s3 0 19 19 9 0 32 Binary: 000000 10011 10011 01001 00000 100000 Hexadecimal: 0x02734820 Q2) add $t1, $st1, $t1 0 9 9 9 0 32 Q3) add $t1, $t1, $s6 0 9 22 9 0 32 Q4) lw $t0, 0($t1) 35..
아래 코드를 가지고 설명하겠습니다. ✓ 코드를 작성할 땐 textEdit(메모장), visual Studio 등을 사용하시면 됩니다. ↓↓↓ C language code ↓↓↓ #include int main(){ printf("Hello World!!!\n"); return 0; } ↓↓↓ Assembly language code ↓↓↓ # test.s # print "Hello World!!!" .data str: .asciiz "\nHello, World!\n" .text main: li $v0, 4 la $a0, str syscall li $v0, 10 syscall pseudo assembly instruction MIPS 언어에는 pseudo assembly instruction이 존재합니다...
OtSpim 사용법에 대해서 알아보겠습니다. ↓↓↓ 설치를 위해서 링크를 클릭해 주세요 ↓↓↓ https://yyyeji.tistory.com/149 [MacOS] OtSpim 다운로드하기 Spim 이란? MIPS chip이 아니여도 assembly 코드를 읽고 실행시켜 주는 simulator입니다. 여러 OS(window, mac os, linux)에서 한 줄씩 실행시켜 줍니다. (interface) (앞에 붙은 Ot는 최신 버전을 뜻합니다.) ↓.. yyyeji.tistory.com 아래 사진들은 Otspim을 실행했을 때 나오는 첫 화면들입니다. ✓ 새로운 파일을 생성할 때 쓰는 확장자는 .a or .s or .asm 입니다. ✓ assembly 언어가 화면에 뜰 때 정확히 일치하지 않을 수도 있습..
Spim 이란? MIPS chip이 아니여도 assembly 코드를 읽고 실행시켜 주는 simulator입니다. 여러 OS(window, mac os, linux)에서 코드를 한 줄씩 실행시켜 줍니다. (interface) (앞에 붙은 Ot는 최신 버전을 뜻합니다.) ↓↓↓ 아래 링크를 클릭해 주세요 ↓↓↓ https://sourceforge.net/projects/spimsimulator/files/ spim mips simulator - Browse Files at SourceForge.net This directory contains compiled, installable copies of Spim for various operating systems: QtSpim: QtSpim_*_Windows...