eZ80 docs
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

DivHLByA_s

Divides the 16-bit value in hl by a.

Address: $020144

Inputs:

  • hl: 16-bit dividend.
  • a: 8-bit divisor.

Outputs:

  • hl: Division result.
  • a: Remainder.

Destroys:

  • None