DIV tests - available ST docs simply say '2-17 cycles'

Legend
Decode
Execute
Fetch
Flush
Fetch Stall - space in prefetch buffer but bus busy
Decode Stall - bus busy
Decode Stall - insufficient data in prefetch buffer
Decode Stall - read after write

The stated cycle count would seem to imply binary long division and this is how the STM8 emulator in ucsim currently treats div for. cycle counting. However the cycles measured on actual hardware suggest this is not correct.

0x08100ldw X,#0x8000
0x08103ld A,#0x80
0x08105div X,A
AddressInstruction12345678
0x08108ldw X,#0x8000
0x0810bld A,#0x40
0x0810ddiv X,A
AddressInstruction12345678
0x08110ldw X,#0x8000
0x08113ld A,#0x20
0x08115div X,A
AddressInstruction12345678
0x08118ldw X,#0x8000
0x0811bld A,#0x10
0x0811ddiv X,A
AddressInstruction12345678
0x08120ldw X,#0x8000
0x08123ld A,#0x08
0x08125div X,A
AddressInstruction12345678
0x08128ldw X,#0x8000
0x0812bld A,#0x04
0x0812ddiv X,A
AddressInstruction12345678
0x08130ldw X,#0x8000
0x08133ld A,#0x02
0x08135div X,A
AddressInstruction12345678
0x08138ldw X,#0x8000
0x0813bld A,#0x01
0x0813ddiv X,A
AddressInstruction123456
0x08140ldw X,#0x8000
0x08143ld A,#0x80
0x08145div X,A
AddressInstruction12345678
0x08148ldw X,#0x4000
0x0814bld A,#0x80
0x0814ddiv X,A
AddressInstruction12345678
0x08150ldw X,#0x2000
0x08153ld A,#0x80
0x08155div X,A
AddressInstruction12345678
0x08158ldw X,#0x1000
0x0815bld A,#0x80
0x0815ddiv X,A
AddressInstruction12345678
0x08160ldw X,#0x0800
0x08163ld A,#0x80
0x08165div X,A
AddressInstruction12345678
0x08168ldw X,#0x0400
0x0816bld A,#0x80
0x0816ddiv X,A
AddressInstruction12345678
0x08170ldw X,#0x0200
0x08173ld A,#0x80
0x08175div X,A
AddressInstruction12345678
0x08178ldw X,#0x0100
0x0817bld A,#0x80
0x0817ddiv X,A
AddressInstruction12345678
0x08180ldw X,#0x0080
0x08183ld A,#0x80
0x08185div X,A
AddressInstruction1234567
0x08188ldw X,#0x0040
0x0818bld A,#0x80
0x0818ddiv X,A
AddressInstruction1234567
0x08190ldw X,#0x0020
0x08193ld A,#0x80
0x08195div X,A
AddressInstruction1234567
0x08198ldw X,#0x0010
0x0819bld A,#0x80
0x0819ddiv X,A
AddressInstruction1234567
0x081a0ldw X,#0x0008
0x081a3ld A,#0x80
0x081a5div X,A
AddressInstruction1234567
0x081a8ldw X,#0x0004
0x081abld A,#0x80
0x081addiv X,A
AddressInstruction1234567
0x081b0ldw X,#0x0002
0x081b3ld A,#0x80
0x081b5div X,A
AddressInstruction1234567
0x081b8ldw X,#0x0001
0x081bbld A,#0x80
0x081bddiv X,A
AddressInstruction1234567
0x081c0ldw X,#0x0000
0x081c3ld A,#0x80
0x081c5div X,A
AddressInstruction1234567
0x081c8ldw X,#0x003f
0x081cbld A,#0x08
0x081cddiv X,A
AddressInstruction123456789
0x081d0ldw X,#0x0040
0x081d3ld A,#0x08
0x081d5div X,A
AddressInstruction12345678
0x081d8ldw X,#0x0041
0x081dbld A,#0x08
0x081dddiv X,A
AddressInstruction12345678
0x081e0ldw X,#0x8000
0x081e3ldw Y,#0x0001
0x081e7divw X,Y
AddressInstruction1234567