If you are using the DCS SDK (And therefore, Brass), you should do this for that routine. On the page, it said to "unwind this code XX times", which means you need to copy-paste that code over and over to get the desired effect. Here it is for Brass:
Code:
Code:
DivACbyDE:
.repeat 16
rl c
rla
adc hl,hl
sbc hl,de
jr nc,$+3
add hl,de
.loop
rl c
rla
cpl
ld b,a
ld a,c
cpl
ld c,a