From: dfawcus+lists-coff at employees.org (Derek Fawcus)
Subject: [COFF] Pointers for maths routines in "assembly"
Date: Mon, 25 May 2020 10:12:18 +0100 [thread overview]
Message-ID: <20200525091218.GB85793@clarinet.employees.org> (raw)
In-Reply-To: <20200525042726.GA685@minnie.tuhs.org>
On Mon, May 25, 2020 at 02:27:26PM +1000, Warren Toomey wrote:
>
> Next question, is it possible to do 16-bit division when the hardware
> can only do 8-bit divided by 8-bit. Ditto 16-bit modulo with only 8-bit
> modulo?
I believe so.
I've seen code for a 68000 to do division of 32 bit values when the chip
only provides for division of 16 bit values. So the same approach should
apply for extending an 8 bit divide to provide 16 bit division.
The book I have this in attributes the algorith to a Dr. Arthur Norman.
See https://archive.org/stream/Programming_The_M68000_1983_Adn-Wesley_Publishing_Company/Programming_The_M68000_1983_Addison-Wesley_Publishing_Company_djvu.txt
Section 5.8 & 5.9, page 99 in the actual printed book.
DF
prev parent reply other threads:[~2020-05-25 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-25 4:27 wkt
2020-05-25 5:22 ` ralph
2020-05-25 9:12 ` dfawcus+lists-coff [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200525091218.GB85793@clarinet.employees.org \
--to=coff@minnie.tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).