Encoding immediate in JAL

Enter the offset:
{{ offset_message }}
Enter Instr[31:20]:
{{ mcode_message }}

Offset/Imm

imm[31:21] imm[20:1] imm[0]
{{ offsetSignDisplay }} {{ offsetDisplay }} 0

Machine code/Instr (UJ format)

Instr[31:12] Instr[11:7] Instr[6:0]
imm[20 | 10:1 | 11 | 19:12] rd opcode
{{ mcodeDisplay }} 00001 1101111
{{ message }}

Enter the (jump) offset and highest 20 bits in the machine code, and then click the Check button to check if they match.

The input can be in dec, bin, or hex. Digits/bits can be separated by '_' or spaces.