일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- align-items
- 상태
- Codility
- spring
- skt membership
- pandas
- Javascript
- Flexbox
- margin
- 에라토스테네스의 체
- 수학
- 소수
- grid
- c++
- SK바이오사이언스
- 강화학습
- 확률
- 통신사할인
- Design Pattern
- Prefix Sums
- Gap
- series
- 포토샵
- Photoshop
- 알고리즘
- 백준
- dataframe
- stl
- CSS
- c
- Today
- Total
sliver__
2.16 Real Stuff: ARMv7 (32-bit) Instructions 본문
Addressing Mode
MIPS는 3개 Addressing mode를 지원
ARM은 9개 Addressing mode를 지원
Compare and Conditional Branch
MIPS는 conditional branch를 위해 register를 사용한다.
ARM은 word의 condition bits가 존재한다. (negative, zero, carry, overflow)
CMP instruction은 한 operand에서 다른 operand를 빼서 확인한다.
CMN(Compare negative)은 하나의 operand와 다른 operand를 더한 값으로 condition code를 설정한다.
TST는 Logical AND.
TEQ는 exclusive OR.
ARM은 처음 4bits를 통해 no operation instruction(nop)인지 real instruction인지 구분한다.

ARM과 MIPS의 가장 큰 차이점은 ARM은 처음 4bits가 condition field이고 operand에 register 수가 적다.
왜냐하면 ARM register수는 MIPS의 반 이기 때문이다.
Unique Features of ARM
ARM은 0을 나타내는 register가 없기 때문에 연산을 제공한다.
'CS > 컴퓨터 구조' 카테고리의 다른 글
3.2 Addition and Subtraction (0) | 2023.11.03 |
---|---|
2.17 Real Stuff : x86 Instruction (1) | 2023.10.31 |
2.14 Arrray versus Pointers (1) | 2023.10.22 |
2.13 A C Sort Exampleto Put It All Together (0) | 2023.10.21 |
2.12 Translating and Starting a Program (0) | 2023.10.21 |