title Module from library INTEGER_3 : MOD32 name ('MOD32') maclib baselib.lib ; Get modulo of 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 remainder ; EXIT Result filled with quotient ; Carry set on overflow or negative divisor entry mod32 extrn $op32,$mod32 mod32: push hl ld hl,$mod32 ; Load routine jp $op32 ; Go modulo end