> For the complete documentation index, see [llms.txt](https://janehacker1.gitbook.io/dsm-ecu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://janehacker1.gitbook.io/dsm-ecu/mc6801-vs.-tmp76c75t/xdiv.md).

# xDIV

Division instructions

The TMP76C75T has two `16-bit by 8-bit`(16/8) division instructions `IDIV` and `FDIV`. Supposedly these are `Integer Division` and `Fractional Division` respectively.

{% hint style="info" %}
Check out the Hitachi HD6309's `DIVD` which is the closest documentation to these instructions I've found.
{% endhint %}

### Comment from the \`DSM-ECU\` Yahoo! Group

> `15 57 FDIV  L0057 - 16bit x 8bit fractional divide with the`\
> `parameters as you stated: D = numerator, direct mem location $57 =`\
> `denominator, B = result, A = remainder. sets carry if overflow, i.e.`\
> `numerator > denominator. if this is like the hc11 FDIV it will also`\
> `set the carry on a divide by 0. the denominator is not affected.`
>
> `-`jjbrad123, Thu, 18 Dec 2003 14:34:02 -0000

### The 6309 Book: DIVD operation p.3-61

> Operation: B’ <- D / (m); A’ <- D % (m)

* Also see: Motorola 6809 and Hitachi 6309 Programming Reference (Darren Atkinson) p.59
