home *** CD-ROM | disk | FTP | other *** search
- #include "register.h"
- #include "symtab.h"
- #include "diblock.h"
- #include "instrn.h"
- #include "process.h"
-
- dinstrn *
- i_or(dipc, rs, rt, rd, shamt, funct)
- dinstrn *dipc;
- int rs;
- int rt;
- int rd;
- int shamt;
- int funct;
- {
- unsigned long s;
- unsigned long t;
-
- procsget(rs, s);
-
- procsget(rt, t);
-
- procsput(rd, s | t);
-
- return dipc;
- }
-
- dinstrn *
- i_ori(dipc, rs, rt, immediate)
- dinstrn *dipc;
- int rs;
- int rt;
- short immediate;
- {
- unsigned long s;
-
- procsget(rs, s);
-
- procsput(rt, s | ((unsigned long)immediate & 0xFFFF));
-
- return dipc;
- }
-