R
✅ Reverse Bits. Reverses the bit order of the source register (bit 0 becomes the top bit, and vice versa) and writes the result to the destination.
✅ 비트 순서 반전. 소스 레지스터의 비트 순서를 완전히 뒤집습니다(0번 비트가 최상위 비트가 되는 식) 결과를 대상 레지스터에 저장합니다.
Syntax
RBIT <Wd|Xd>, <Wn|Xn>
Example
RBIT X0, X1
✅ Return from subroutine. Branches to the address in the Link Register (usually X30).
✅ 서브루틴에서 복귀합니다. 링크 레지스터(보통 X30)에 저장된 주소로 분기합니다.
Syntax
RET {<Xn>}
Example
RET
🔗 Open Summary**
✅ Return, Authenticating with key A. Combines AUTIASP (verify the return address signature) and RET (branch to X30) into a single instruction — the common, compact form generated in real compiled code instead of writing AUTIASP + RET separately.
✅ 키 A로 인증하며 복귀. AUTIASP(복귀 주소 서명 검증)와 RET(X30으로 분기)을 한 명령어로 합친 것으로, AUTIASP + RET을 따로 쓰는 대신 실제 컴파일된 코드에서 흔히 생성되는 압축된 형태입니다.
Syntax
RETAA
Example
RETAA // AUTIASP + RET 을 한 번에
🔗
✅ Same as RETAA but verifies the key-B signature (combines AUTIBSP + RET).
✅ RETAA와 동일하지만 키 B 서명을 검증합니다 (AUTIBSP + RET을 합친 것).
Syntax
RETAB
Example
RETAB
🔗
✅ Reverse bytes. Reverses the byte order of the whole register (swaps endianness) and writes the result to the destination register.
✅ 바이트 순서 반전. 레지스터 전체의 바이트 순서를 뒤집습니다(엔디안 변환) 결과를 대상 레지스터에 저장합니다.
Syntax
REV <Wd|Xd>, <Wn|Xn>
Example
REV W0, W1 // 리틀엔디안 <-> 빅엔디안 변환
🔗
✅ Reverse bytes in each halfword. Reverses the byte order independently within each 16-bit halfword of the register.
✅ 하프워드 단위 바이트 반전. 레지스터를 16비트(하프워드) 단위로 쪼개어, 각 하프워드 안에서만 바이트 순서를 뒤집습니다.
Syntax
REV16 <Wd|Xd>, <Wn|Xn>
Example
REV16 W0, W1
🔗
✅ Reverse bytes in each word (64-bit register only). Reverses the byte order independently within each 32-bit word packed into the 64-bit register.
✅ 워드 단위 바이트 반전(64비트 레지스터 전용). 64비트 레지스터에 담긴 값을 32비트(워드) 단위로 쪼개어, 각 워드 안에서만 바이트 순서를 뒤집습니다.
Syntax
REV32 <Xd>, <Xn>
Example
REV32 X0, X1
🔗
✅ Rotate Right. Rotates the bits of a register right by an immediate or register-specified amount, with bits shifted off the low end wrapping around to the high end (unlike LSR, no bits are lost).
✅ 오른쪽 비트 회전. 레지스터의 비트를 즉시값 또는 레지스터로 지정한 만큼 오른쪽으로 회전시킵니다. 밀려난 하위 비트가 사라지지 않고(LSR과 달리) 반대쪽 상위로 다시 들어옵니다.
Syntax
ROR <Wd|Xd>, <Wn|Xn>, #<shift> or ROR <Wd|Xd>, <Wn|Xn>, <Wm|Xm>
Example
ROR X0, X1, #8 // X1을 오른쪽으로 8비트 회전
🔗