Skip to content

HL.DIV

48-bit HL. **Group:** Multi-Cycle ALU  |  Ch 12   ALU — Arithmetic Logic Unit  |  **Length:** 48  |  **Decode:**

Assembly Syntax

  • hl.div SrcL, SrcR, ->Dst0, Dst1

Encoding

HL.DIV encoding
Bitfield encoding diagram. MSB is on the left, LSB on the right.

Description

[48-bit HL.] Signed integer division.

Pseudocode (informative)

rd = (rs2 != 0) ? (rs1 / rs2) : 0;

Encoding Notes

No additional encoding notes.

Full Catalog Forms

Assembly Length Decode
hl.div SrcL, SrcR, ->Dst0, Dst1 48
← [Multi-Cycle ALU](../groups/multi_cycle_alu.md)    [Index](../index.md)    [All instructions](index.md) →