• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1%default { "is_object":"0" }
2    /* for: move/16, move-object/16 */
3    /* op vAAAA, vBBBB */
4    lhu     a3, 4(rPC)                  # a3 <- BBBB
5    lhu     a2, 2(rPC)                  # a2 <- AAAA
6    FETCH_ADVANCE_INST 3                # advance rPC, load rINST
7    GET_VREG a0, a3                     # a0 <- vBBBB
8    GET_INST_OPCODE v0                  # extract opcode from rINST
9    .if $is_object
10    SET_VREG_OBJECT a0, a2              # vAAAA <- vBBBB
11    .else
12    SET_VREG a0, a2                     # vAAAA <- vBBBB
13    .endif
14    GOTO_OPCODE v0                      # jump to next instruction
15