Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- system
- MIPS
- for
- Linux
- control
- architecture
- DB
- github
- web
- Pipelining
- javascript
- computer
- php
- python
- data structure
- DS
- react
- MacOS
- mysql
- DATAPATH
- Algorithm
- instruction
- while
- Java
- html
- Class
- CSS
- function
- XML
- DoM
Archives
- Today
- Total
YYYEJI
[MIPS] Control Instruction 본문
728x90
① BEQ / BNE
16-bit Offset
② J
26-bit address
③ JR
32-bit address
많은 거리를 jump하고 싶을 땐 많은 address를 가지고 있는 ③을 이용해라.
↓↓↓ BEQ / BNE ↓↓↓
https://yyyeji.tistory.com/120
[CS] MIPS Conditional branch Instruction (BEQ, BNE)
① BEQ - Branch if Equal Ex) BEQ $s1, $s2, label # if($s1 == $s2) PC op = 4 rs = 17 rt = 18 offset (word count) $s1의 값과 $s2의 값이 같으면 label의 값이 계산되어서 PC에 들어갑니다. ② BNE - Br..
yyyeji.tistory.com
↓↓↓ J / JR ↓↓↓
https://yyyeji.tistory.com/122
[CS] MIPS Unconditional Branch Instructions (Jump etc.)
JUMP 새로운 target 주소(PC)로 점프하는 instruction입니다. Ex) J label → PC = target address (Memory addressing mode와 굉장히 밀접한 관련이 있다.) op = 2 word address (Jump instruction의 op code는..
yyyeji.tistory.com
◡̈
'Computer architectures' 카테고리의 다른 글
[MacOS] QtSpim 사용하기 (0) | 2022.10.07 |
---|---|
[MacOS] QtSpim 설치하기 (0) | 2022.10.07 |
[MIPS] Unconditional Branch Instructions (Jump etc.) (2) | 2022.09.25 |
[MIPS] Conditional branch Instruction (slt) (0) | 2022.09.25 |
[MIPS] Conditional branch Instruction (BEQ, BNE) (0) | 2022.09.25 |