home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12808 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.3 KB

  1. Path: sparky!uunet!olivea!hal.com!decwrl!sun-barr!ames!tulane!uflorida!sparky.cis.ufl.edu!scroll
  2. From: scroll@sparky.cis.ufl.edu (Steve Croll)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Assembler programming.
  5. Message-ID: <36862@uflorida.cis.ufl.edu>
  6. Date: 28 Aug 92 15:26:29 GMT
  7. References: <14448@mindlink.bc.ca> <64374@cup.portal.com> <1992Aug21.220718.24365@jato.jpl.nasa.gov>
  8. Sender: news@uflorida.cis.ufl.edu
  9. Reply-To: scroll@sparky.cis.ufl.edu (Steve Croll)
  10. Organization: U of Florida. Computer Science Dept.
  11. Lines: 15
  12. Nntp-Posting-Host: sparky.cis.ufl.edu
  13.  
  14. In article <1992Aug21.220718.24365@jato.jpl.nasa.gov>, jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
  15. |> I stand corrected. Quite unnerving to think that in situations where address
  16. |> register indirect with index type addressing is used (i.e. null terminating
  17. |> a string: move.b #0,(a0,d0.w) ) requires an additional memory read _just_
  18. |> to find out that the displacement value wasn't given (zero). 
  19.  
  20. Actually, the length of the instruction (on a 68000) does not depend on 
  21. the value of the displacement; there is no additional memory read.
  22. Example:
  23.  
  24. 00000000  13BC 0000 1000              1         move.b #0,0(a1,d1.w)
  25. 00000006  13BC 0000 107F              2         move.b #0,127(a1,d1.w)
  26.  
  27. --
  28. Steve Croll (internet: scroll@sparky.cis.ufl.edu  office: 904-392-1507)
  29.