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
- DB
- function
- CSS
- DATAPATH
- DoM
- Class
- react
- Algorithm
- system
- instruction
- javascript
- control
- Java
- php
- for
- mysql
- github
- XML
- web
- DS
- MacOS
- architecture
- while
- computer
- python
- data structure
- Linux
- Pipelining
- html
- MIPS
Archives
- Today
- Total
YYYEJI
[MIPS] Conditional branch Instruction (BEQ, BNE) 본문
728x90
① 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 - Branch if Not Equal
Ex) BNE $s1, $s2, label # if($s1 != $s2) PC
op = 5 | rs = 17 | rt = 18 | offset (word count) |
$s1의 값과 $s2의 값이 다르면 label의 값이 계산되어서 PC에 들어갑니다.
◡̈
'Computer architectures' 카테고리의 다른 글
[MIPS] Unconditional Branch Instructions (Jump etc.) (2) | 2022.09.25 |
---|---|
[MIPS] Conditional branch Instruction (slt) (0) | 2022.09.25 |
[MIPS] Instruction (Load, Store) (0) | 2022.09.25 |
[MIPS] MIPS Instructions 간단하게 살펴보기 (0) | 2022.09.25 |
[MIPS] Design Principles (0) | 2022.09.24 |