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
- git error 해결
- 비교연산
- 메모리접근
- RISC-V
- 분기 명령어
- J-type
- 자동차 대여 기록에서 장기/단기 대여 구분하기 #프로그래머스 #DB #SQL #Mysql #DATE_ADD #TIMESTAMPDIFF
- SQL #MySQL #데이터베이스 #database #프로그래밍 #DDL #DML #TCL #DB #DBMS #RDBMS
- 네트워크 #network #운영체제 #OS #면접대비 #대학원 #
- shift연산
- instruction
- 특정 옵션이 포함된 자동차 리스트 구하기 #programmers #프로그래머스 #SQL #Mysql
- 컴퓨터구조
- 무조건 분기
- 조건에 부합하는 중고거래 댓글 조회하기 #SQL #Mysql
- 프로세스 #스레드 #컨텍스트스위칭 #프로그램기초 #IT
- programmers
- Git 초보
- pseudo
- SQL 문법 #SQL #테이블 #스키마 #스키마스 #데이테베이스 #공부
- SQL #RDBMS #테이블 #table #row #column #문자형 데이터 #숫자형 데이터 #날짜형 데이터 #관계형 데이터베이스 #DB #데이터베이스 #database #MYSQL #MYSQL 설치 #MYSQL 접속
- 명령어
- RV32I
- Computer Architecture
- git bash
- 프로그래머스 #
- 조건부 분기
- instrction
- programmers #프로그래머스 #C언어
- 산술연산
Archives
- Today
- Total
juniverse
[RISC-V] Pseudo Instruction 본문
컴퓨터구조 computer organization and design/RISC-V edition
[RISC-V] Pseudo Instruction
iamjunis 2022. 7. 21. 00:57반응형
SMALL
pseudo 명령어는 CPU가 모르는 쉽게 말하면 '가짜 명령어'이다.
이는 컴파일러가 컴파일 과정에서 실제 명령어로 바꿔준다.
기능 | Pseudo 명령어 | 실제 명령어 |
Load abdolute address | la rd, symbol | auipc rd, ... addi rd, rd, ... |
Load immediate | li rd, immediate | lui rd, ... addi rd, ... |
No operation | nop | addi x0, x0, 0 |
Copy register | mv rd, rs | addi rd, rs, 0 |
One's complement | not rd, rs | xori rd, rs, -1 |
Two's complement | neg rd, rs | sub rd, x0, rs |
Branch if >, signed | bgt rs, rt, offset | blt rs, rt, offset |
Branch if ≤, signed | ble rs, rt, offset | bge rs, rt, offset |
Branch if >, unsigned | bgtu rs, rt, offset | bltu rs, rt, offset |
Branch if ≤, unsigned | bleu rs, rt, offset | bgeu rs, rt, offset |
Jump | j offset | jal x0, offset |
Jump and link | jal offset | jal x1, offset |
Jump register | jr rs | jalr x0, 0(rs) |
Jump and link register | jalr rs | jalr x1, 0(rs) |
Return from function | ret | jalr x0, 0(x1) |
Call function | call offset | auipc x1, offset[31:12] + offset[11] jalr x1, offset[11:0](x1) |
# Reference
원리부터 설계까지 쉽고 명확한 컴퓨터구조 RISC-V 중심으로 - 서태원 지음 - 도서출판 홍릉
반응형
LIST
'컴퓨터구조 computer organization and design > RISC-V edition' 카테고리의 다른 글
[RISC-V] RV32I 분기 명령어 (0) | 2022.07.21 |
---|---|
[RISC-V] RV32I 메모리접근 명령어 (0) | 2022.07.20 |
[RISC-V] RV32I 데이터처리 명령어 (0) | 2022.07.20 |
[RISC-V] RV32I Instruction Set (0) | 2022.07.20 |