Instruction Set - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Instruction Set

Description:

AddI r1, #100, r3; r1=100 r3. Sub, and, xor, or, ... SXX r1, r2, r3. XX= GT, GE, LT, LE. SGT r1, r2, r3; r1=1 if r2 r3 else r1=0. SXXI r1, #100, r3 ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 6
Provided by: fre72
Category:
Tags: instruction | set | sxx

less

Transcript and Presenter's Notes

Title: Instruction Set


1
Instruction Set
  • ALU
  • Load/Store (Memory)
  • Branch

2
ALU
  • Add r1, r2, r3 r1r2r3
  • Sub, and, xor, or,
  • AddI r1, 100, r3 r1100r3
  • Sub, and, xor, or,
  • SXX r1, r2, r3
  • XX GT, GE, LT, LE
  • SGT r1, r2, r3 r11 if r2gtr3 else r10
  • SXXI r1, 100, r3

3
Load/Store
  • Loads
  • LW r1, 100(r4) r1Mem100r4
  • LB r1, 100(r4) r1Mem100r4
  • Stores
  • SW 100(r4), r1 Mem100r4r1
  • SB 100(r4), r1 Mem100r4r1

4
Branch and Jumps
  • Jumps (unconditional)
  • J label
  • JR r1
  • Branches (conditional)
  • BEQZ r1, label if r10 goto loop
  • BNEQZ r1, label if r1!0 goto loop
  • Subroutines
  • JAL label goto label R31return address
  • JALR r1 goto (r1) R31return address

5
Floating point
  • Single precision
  • Addf f0, f1, f2
  • Subf, multf, divf,
  • Double precision
  • Addd f0, f2, f4
  • Subd, multd, divd,
Write a Comment
User Comments (0)
About PowerShow.com