home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13162 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!wupost!kuhub.cc.ukans.edu!husc-news.harvard.edu!husc-news!baker4
  2. Newsgroups: comp.sys.mac.programmer
  3. Subject: Re: A few more suggestions for THINK C
  4. Message-ID: <BAKER4.92Jul29124341@husc10.harvard.edu>
  5. From: baker4@husc10.harvard.edu (David Baker)
  6. Date: 29 Jul 92 12:43:41
  7. References: <dx3uv972.9c6tdb@moebius.cubetech.com>
  8. Distribution: comp
  9. Organization: Department of Psychology, Harvard University
  10. Nntp-Posting-Host: husc10.harvard.edu
  11. In-reply-to: peterc@cubetech.com's message of Fri, 24 Jul 92 20:42:21 CDT
  12. Lines: 28
  13.  
  14.  
  15. In article <dx3uv972.9c6tdb@moebius.cubetech.com> peterc@cubetech.com (Peter Creath) writes:
  16.  
  17.  
  18.    lea        myVariable,A0
  19.    move.w    #0x04,D0
  20.    muls.w    #0x0304,D0
  21.    add.w    D0,A0
  22.    ^^^^^^^^^^^^^^^^^^
  23.    move.l    (A0),D1
  24.    lea        myVariable,A0    /* note the redundance -- the correct address */
  25.    move.w    #0x04,D0        /* is already in A0 */
  26.    muls.w    #0x0304,D0
  27.  
  28.  
  29. Um, that there line looks like a0 no longer contains yourVariable.
  30.  
  31. --
  32. -------------------------------------------------------------------------------
  33. David P. Baker                Misbrainer:
  34. Work: dpb@huelings.harvard.edu        The onions impressed herein are mine,
  35. Home: baker4@husc.harvard.edu        knot throes of my imploder.
  36. Office: William James Hall 844        He wouldn't want 'em, anyway.
  37.     Department of Psychology
  38.     Harvard University        If responding by mail, please use my
  39.     (617) 495-3773            "Work" address above.
  40. -------------------------------------------------------------------------------
  41.  
  42.