In a message dated 11/12/99 16:19:02 Eastern Standard Time, glendon.solsberry@tricon-yum.com writes: > Sorry, let me clarify... > > I want to do A mod B. How do I do this? The easiest way is to use _divHLbyA ld l,a ld h,0 ;hl=numerator ld a,b ;a=denominator call _divHLbyA ;hl=hl/a ;a=hl%a ---- Jonah Cohen <ComAsYuAre@aol.com> http://linux.hypnotic.org/~jonah/