home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!fipnet!light!terje
- From: terje@light.fipnet.fi (Terje Bergstrom)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Assembly questions.
- Message-ID: <Z75Dr*dm0@light.fipnet.fi>
- Date: Sat, 05 Sep 1992 10:50:37 GMT
- References: <1802@grivel.une.edu.au>
- Organization: Lightning Inc's Development Corner. Espoo, SF
- X-Newsreader: Arn V1.00 beta rel2
- Lines: 21
-
- In article <1802@grivel.une.edu.au>, Chris Fiddyment writes:
-
- > First I am using the commands
- >
- > move.l #186,d0
- > divu #10,d0
- > moveq.l #0,d1
- > move.b d0,d1
- >
- > to get d1 = 18. How canI get the remainder of the division (the upper part
- > of d0) into register d2. Is there some way to shift the register?
-
- swap d0 ; before: $00060012, after: $00120006
- moveq.l #0,d2
- move.w d0,d2
-
-
- Terje Bergstr|m Internet: terje@light.fipnet.fi
- Jukolanahde 4 D 15 FidoNet: 2:220/550.3
- 02180 Espoo
- Finland
-