Post Reply 
(41C) Quotient and Remainder
04-18-2023, 05:40 AM
Post: #8
RE: (41C) Quotient and Remainder
(04-16-2023 06:30 PM)J-F Garnier Wrote:  
(04-16-2023 03:32 PM)Ángel Martin Wrote:  I use a 13-digit division routine in QREM, which seems to make the difference.

Using the internal 13-digit truncated division, then truncating (not rounding) it to 10 digits is the right thing to implement the integer division Smile

J-F

Yes, and the OS does that for you: the truncated 10-digit value is placed in C, while the 13-digit value is left in registers {A,B}

"To live or die by your own sword one must first learn to wield it aptly."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(41C) Quotient and Remainder - Werner - 04-05-2023, 09:12 AM
RE: (41C) Quotient and Remainder - Werner - 04-05-2023, 01:08 PM
RE: (41C) Quotient and Remainder - Werner - 04-10-2023, 07:25 AM
RE: (41C) Quotient and Remainder - Ángel Martin - 04-18-2023 05:40 AM
RE: (41C) Quotient and Remainder - Werner - 04-18-2023, 02:57 PM



User(s) browsing this thread: 1 Guest(s)