Kiến trúc máy tính - MIPS Green Sheet (HUST)
Đang tạo bản xem trước...
MIPS Reference Data Card (“Green Card”) 1. Pull along perforation to separate card 2. Fold bottom side (columns 3 and 4) together ARITHMETIC CORE INSTRUCTION SET 1 M I P S Reference Data CORE INSTRUCTION SET FORNAME, MNEMONIC MAT OPERATION (in Verilog) add Add R R[rd] = R[rs] + R[rt] OPCODE / FUNCT (Hex) (1) 0 / 20hex addi I R[rt] = R[rs] + SignExtImm (1,2) Add Imm. Unsigned addiu I R[rt] = R[rs] + SignExtImm (2) Add Immediate Add Unsigned addu R R[rd] = R[rs] + R[rt] And and R R[rd] = R[rs] & R[rt] And Immediate andi I Branch On Equal beq I Branch On Not Equal bne I 0 / 24hex Jump j J Jump And Link jal J R[31]=PC+8;PC=JumpAddr Jump Register jr ll R PC=R[rs] R[rt]={24’b0,M[R[rs] I +SignExtImm](7:0)} R[rt]={16’b0,M[R[rs] I +SignExtImm](15:0)} I R[rt] = M[R[rs]+SignExtImm] Load Upper Imm. lui I R[rt] = {imm, 16’b0} Load Word lw I R[rt] = M[R[rs]+SignExtImm] Nor nor R R[rd] = ~ (R[rs] | R[rt]) Or or R R[rd] = R[rs] | R[rt] Or Immediate ori I Set Less Than slt R R[rd] = (R[rs] < R[rt]) ? 1 : 0 Load Halfword Unsigned Load Linked lhu 9hex 0 / 21hex R[rt] = R[rs] & ZeroExtImm if(R[rs]==R[rt]) PC=PC+4+BranchAddr if(R[rs]!=R[rt]) PC=PC+4+BranchAddr PC=JumpAddr Load Byte Unsigned lbu 8hex (3) chex (4) 4hex (4) (5) (5) 5hex 2hex 3hex 0 / 08hex (2) (2) (2,7) 24hex 25hex 30hex fhex (2) 23hex 0 / 27hex 0 / 25hex R[rt] = R[rs] | ZeroExtImm (3) dhex 0 / 2ahex Shift Left Logical sll Shift Right Logical srl R[rt] = (R[rs] < SignExtImm)? 1 : 0 (2) ahex R[rt] = (R[rs] < SignExtImm) bhex I ?1:0 (2,6) R R[rd] = (R[rs] < R[rt]) ? 1 : 0 (6) 0 / 2bhex 0 / 00hex R R[rd] = R[rt] << shamt 0 / 02hex R R[rd] = R[rt] >> shamt Store Byte sb I Store Conditional sc I Store Halfword sh I Store Word sw I Subtract sub R R[rd] = R[rs] - R[rt] Subtract Unsigned subu Set Less Than Imm. slti Set Less Than Imm. sltiu Unsigned Set Less Than Unsig. sltu FLOATING-POINT INSTRUCTION FORMATS I M[R[rs]+SignExtIm
… Tải file gốc để đọc toàn bộ tài liệu.
- Tên tài liệu
- Kiến trúc máy tính - MIPS Green Sheet (HUST)
- Trường / Môn
- Đại học Bách khoa Hà Nội · Kiến trúc máy tính
- Nội dung
- Đây là tài liệu tham khảo nhanh về tập lệnh MIPS, bao gồm các lệnh cốt lõi, định dạng lệnh và thông tin thanh ghi. Nó được thiết kế để hỗ trợ việc học và thực hành kiến trúc máy tính.
- Mục lục
- ARITHMETIC CORE INSTRUCTION SET
- FLOATING-POINT INSTRUCTION FORMATS
- REGISTER NAME, NUMBER, USE, CALL CONVENTION
- PSEUDOINSTRUCTION SET
- BASIC INSTRUCTION FORMATS
- Số trang
- 2 trang
- Người đăng
- Người dùng ẩn danh

Bình luận (0)
Chưa có bình luận nào. Hãy là người đầu tiên!