title Module from library INTEGER_3 : DIV32 name ('DIV32') maclib baselib.lib ; Divide 32 bit integers ; Copyright (C) Werner Cirsovius ; Hohe Weide 44 ; D-20253 Hamburg ; Tel.: +49-40-4223247 ; Version 1.0 October 1989 ; ENTRY Reg pair BC points to dividend ; Reg pair DE points to divisor ; Reg pair HL points to 32 bit quotient ; EXIT Result filled with quotient ; Carry set on overflow entry div32 extrn $op32,$div32 div32: push hl ld hl,$div32 ; Load routine jp $op32 ; Go divide end