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 | 29 | 30 | 31 |
Tags
- while
- Class
- control
- computer
- html
- DoM
- Pipelining
- architecture
- system
- DATAPATH
- XML
- mysql
- web
- Algorithm
- data structure
- MIPS
- for
- Java
- function
- javascript
- github
- DB
- php
- Linux
- python
- MacOS
- DS
- instruction
- react
- CSS
Archives
- Today
- Total
YYYEJI
[MIPS] Addressing mode 본문
728x90
Addressing mode에는 여러가지가 존재하는데
MIPS에는 어떤 addressing mode가 있는지 살펴봅시다.
MIPS에 addressing mode는 아래와 같이 있습니다.
① Immediate addressing
② Register addressing
③ Base addressing
④ PC-Relative addressing
⑤ Pseudo-direct addressing
① Immediate addressing
op | rs | rt | imm 16 |
Ex) addi, andi, slti
② Register addressing
op | rs | rt | rd | shamt | function |
✓ rs, rt, rd가 모두 register를 가리키고 있습니다.
Ex) add, mult, and, slt, sll
③ Base addressing
op | rs | rt | address |
Ex) lw, sw
④ PC-Relative addressing
op | rs | rt | offset |
Ex) beq, bne
⑤ Pseudo-direct addressing
op | offset |
Ex) j, jal
◡̈
'Computer architectures' 카테고리의 다른 글
[MIPS] Procedure Call using Stack (0) | 2022.10.10 |
---|---|
[MIPS] Procedure call (0) | 2022.10.10 |
[MIPS] Pseudo Instructions (0) | 2022.10.10 |
[MIPS] LUI instruction (0) | 2022.10.10 |
[MIPS] Stored program Concept (0) | 2022.10.10 |