📄 is_en.txt
字号:
EduMIPS64 INSTRUCTION SET=========================Here's a quick reference guide to the EduMIPS64 Instruction Set. Some descriptions are taken from the MIPS64 Manual. Please let us know if it is a problem, and we will remove them.ADD InstructionSyntax: ADD rd, rs, rtDescription: To add 32-bit integers. If overflow occurs, then trap. ADDI InstructionSyntax: ADDI rt, rs, immediateDescription: To add a constant to a 32-bit integer. If overflow occurs, then trap.ADDU InstructionSyntax: ADDU rd, rs, rtDescription: rd = rs + rt To add 32-bit integers The 32-bit word value in GPR rt is added to the 32-bit value in GPR rs and the 32-bit arithmetic result is placed into GPR rd. No Integer Overflow exception occurs under any circumstances. ADDIU InstructionSyntax: ADDIU rt, rs, immediateDescription: To add a constant to a 32-bit integer The 16-bit signed immediate is added to the 32-bit value in GPR rs and the 32-bit arithmetic result is placed into GPR rt. No Integer Overflow exception occurs under any circumstances. AND InstructionSyntax: AND rd, rs, rt Description: rd = rs and rt Does a bitwise logical AND, the contents of GPR rs are combined with the contents of GPR rt in a bitwise logical AND operation. The result is placed into GPR rd. ANDI InstructionSyntax: ANDI rt, rs, immediateDescription: rt = rs AND immediate Does a bitwise logical AND with a constant The 16-bit immediate is zero-extended to the left and combined with the contents of GPR rs in a bitwise logical AND operation. The result is placed into GPR rt. B InstructionSyntax: B offsetDescription: Jumps inconditionally to offsetBEQ InstructionSyntax: BEQ rs, rt, offsetDescription: if rs = rt then branch To compare GPRs then do a PC-relative conditional branch BEQZ InstructionSyntax: BEQZ rs, offsetDescription: if rs == 0 then branch To test a GPR then do a PC-relative conditional branch BGEZ InstructionSyntax: BGEZ rs, offsetDescription: if rs >= 0 then branch Does a PC-relative branch to offset if rs >= 0BNE InstructionSyntax: BNE rt, rs, immediateDescription: if rs != rt then branch To compare GPRs then do a PC-relative conditional branch BNEZ InstructionSyntax: BNEZ rs, offsetDescription: if rs != 0 then branch To test a GPR then do a PC-relative conditional branch DADD InstructionSyntax: DADD rd, rs, rtDescription: To add 64-bit integers. If overflow occurs, then trap. DADDI InstructionSyntax: DADDI rt, rs, immediateDescription: To add a constant to a 64-bit integer. If overflow occurs, then trap.DADDU InstructionSyntax: DADDU rd, rs, rtDescription: rd = rs + rt To add 64-bit integers The 64-bit doubleword value in GPR rt is added to the 64-bit value in GPR rs and the 64-bit arithmetic result is placed into GPR rd. No Integer Overflow exception occurs under any circumstances. DADDIU InstructionSyntax: DADDIU rt, rs, immediateDescription: To add a constant to a 64-bit integer The 16-bit signed immediate is added to the 64-bit value in GPR rs and the 64-bit arithmetic result is placed into GPR rt. No Integer Overflow exception occurs under any circumstances.DDIV InstructionSyntax: DDIV rs, rtDescription: (LO, HI) = rs / rt To divide 64-bit signed integers The 64-bit doubleword in GPR rs is divided by the 64-bit doubleword in GPR rt, treating both operands as signed values. The 64-bit quotient is placed into special register LO and the 64-bit remainder is placed into special register HI. No arithmetic exception occurs under any circumstances.DDIVU InstructionSyntax: DDIVU rs, rtDescription: (LO, HI) = rs / rt To divide 64-bit unsigned integers The 64-bit doubleword in GPR rs is divided by the 64-bit doubleword in GPR rt, treating both operands as unsigned values. The 64-bit quotient is placed into special register LO and the 64-bit remainder is placed into special register HI. No arithmetic exception occurs under any circumstances. DIV InstructionSyntax: DIV rs, rtDescription: (LO, HI) = rs / rt To divide 32-bit signed integers The 32-bit word in GPR rs is divided by the 32-bit word in GPR rt, treating both operands as signed values. The 32-bit quotient is placed into special register LO and the 32-bit remainder is placed into special register HI. No arithmetic exception occurs under any circumstances.DIVU InstructionSyntax: DIVU rs, rtDescription: (LO, HI) = rs / rt To divide 32-bit unsigned integers The 32-bit word in GPR rs is divided by the 32-bit word in GPR rt, treating both operands as unsigned values. The 32-bit quotient is placed into special register LO and the 32-bit remainder is placed into special register HI. No arithmetic exception occurs under any circumstances. DMULT InstructionSyntax: DMULT rs, rtDescription: (LO) = rs * rt To divide 64-bit signed integers The 64-bit doubleword value in GPR rt is multiplied by the 64-bit value in GPR rs, treating both operands as signed values.DMULTU InstructionSyntax: DMULTU rs, rtDescription: (LO) = rs * rt To divide 64-bit unsigned integers The 64-bit doubleword value in GPR rt is multiplied by the 64-bit value in GPR rs, treating both operands as unsigned values. DSLL InstructionSyntax: DSLL rd, rt, saDescription: To execute a left-shift of a doubleword by a fixed amount 0 to 31 bits The 64-bit doubleword contents of GPR rt are shifted left, inserting zeros into the emptied bits; the result is placed in GPR rd. The bit-shift amount in the range 0 to 31 is specified by sa. DSLLV InstructionSyntax: DSLLV rd, rt, rsDescription: To execute a left-shift of a doubleword by a variable number of bits. The 64-bit doubleword contents of GPR rt are shifted left, inserting zeros into the emptied bits; the result is placed in GPR rd. The bit-shift amount is specified by the low-order 6 bits in GPR rs (the value is unsigned). DSRA InstructionFormat: DSRA rd, rt, saDescription: To execute an arithmetic right-shift of a doubleword by a fixed amount
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -