home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13139 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  959 b 

  1. Path: sparky!uunet!mcsun!fuug!fipnet!light!terje
  2. From: terje@light.fipnet.fi (Terje Bergstrom)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Assembly questions.
  5. Message-ID: <Z75Dr*dm0@light.fipnet.fi>
  6. Date: Sat, 05 Sep 1992 10:50:37 GMT
  7. References: <1802@grivel.une.edu.au>
  8. Organization: Lightning Inc's Development Corner. Espoo, SF
  9. X-Newsreader: Arn V1.00 beta rel2
  10. Lines: 21
  11.  
  12. In article <1802@grivel.une.edu.au>, Chris Fiddyment writes:
  13.  
  14. >   First I am using the commands
  15. >
  16. >       move.l  #186,d0
  17. >       divu    #10,d0
  18. >       moveq.l #0,d1
  19. >       move.b  d0,d1
  20. >
  21. >   to get d1 = 18. How canI get the remainder of the division (the upper part
  22. >   of d0) into register d2. Is there some way to shift the register?
  23.  
  24.     swap d0          ; before: $00060012, after: $00120006
  25.     moveq.l #0,d2
  26.     move.w d0,d2
  27.  
  28.  
  29.   Terje Bergstr|m           Internet:   terje@light.fipnet.fi
  30.   Jukolanahde 4 D 15        FidoNet:    2:220/550.3
  31.   02180 Espoo
  32.   Finland
  33.