• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1    /* const/4 vA, #+B */
2    ext     a2, rINST, 8, 4             # a2 <- A
3    seh     a0, rINST                   # sign extend B in rINST
4    FETCH_ADVANCE_INST 1                # advance rPC, load rINST
5    sra     a0, a0, 12                  # shift B into its final position
6    GET_INST_OPCODE v0                  # extract opcode from rINST
7    SET_VREG a0, a2                     # vA <- +B
8    GOTO_OPCODE v0                      # jump to next instruction
9