sliver__

2.16 Real Stuff: ARMv7 (32-bit) Instructions 본문

CS/컴퓨터 구조

2.16 Real Stuff: ARMv7 (32-bit) Instructions

sliver__ 2023. 10. 23. 21:22
728x90

Similarities in ARM and MIPS instruction sets.
ARM register-register and data transfer instructions equivalent to MIPS core.

Addressing Mode

Summary of data 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인지 구분한다.

Instruction formats, ARM and MIPS.

ARM과 MIPS의 가장 큰 차이점은 ARM은 처음 4bits가 condition field이고 operand에 register 수가 적다.

왜냐하면 ARM register수는 MIPS의 반 이기 때문이다.

 

Unique Features of ARM

ARM arithmetic/logical instructions not found in MIPS.

ARM은 0을 나타내는 register가 없기 때문에 연산을 제공한다.

 

728x90

'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
Comments