YYYEJI

[MIPS] Pseudo Instructions 본문

Computer architectures

[MIPS] Pseudo Instructions

YEJI ⍢ 2022. 10. 10. 18:47
728x90

Pseudo instruction란?

실제 instruction은 아니지만 컴퓨터가 이해할 수 있는 instruction입니다.

 간결한 코딩이 가능

  생산성이 향상

 

 

①  COPY

Ex) move $t0,  $t1

→  MIPS에서는 add $t0, $t1, $zero로 인식합니다.

②   Branch if Less Than

Ex) blt $t0, $t1, L

→  if ($t0 < $t1) goto L

③   Branch if Greater Than

Ex) bgt $t0, $t1, L

→  if ($t0 > $t1) goto L

④  Branch if Greater (Less) Than or Equal to

Ex) bge $t0, $t1, L

→  if ($t0 >= $t1) goto L

 

 

 

 

◡̈

 

'Computer architectures' 카테고리의 다른 글

[MIPS] Procedure call  (0) 2022.10.10
[MIPS] Addressing mode  (0) 2022.10.10
[MIPS] LUI instruction  (0) 2022.10.10
[MIPS] Stored program Concept  (0) 2022.10.10
[MIPS] Format instruction identification  (0) 2022.10.10