Skip to content

Instantly share code, notes, and snippets.

@karlding
Created February 7, 2016 05:21
Show Gist options
  • Save karlding/2e2aa8361872c5240a1b to your computer and use it in GitHub Desktop.
Save karlding/2e2aa8361872c5240a1b to your computer and use it in GitHub Desktop.
Register map for the subset of MIPS used in CS 241
// register map
#define ADD 0x20
#define SUB 0x22
#define MULT 0x18
#define MULTU 0x19
#define DIV 0x1a
#define DIVU 0x1b
#define MFHI 0x10
#define MFLO 0x12
#define LIS 0x14
#define LW 0x23
#define SW 0xac000000
#define SLT 0x2a
#define SLTU 0x2b
#define BEQ 0x10000000
#define BNE 0x14000000
#define JR 0x08
#define JALR 0x09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment