home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / m6809 / 384 < prev    next >
Encoding:
Text File  |  1992-08-29  |  917 b   |  32 lines

  1. Newsgroups: comp.sys.m6809
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!lonex.rl.af.mil!popyackl
  3. From: popyackl@lonex.rl.af.mil (Leonard J. Popyack)
  4. Subject: Re: instruction weirdness
  5. Message-ID: <1992Aug28.121044.14431@lonex.rl.af.mil>
  6. Keywords: ldy, help, actin' funky
  7. Organization: RL
  8. References: <71619@apple.Apple.COM>
  9. Date: Fri, 28 Aug 92 12:10:44 GMT
  10. Lines: 20
  11.  
  12. In article <71619@apple.Apple.COM> britt@Apple.COM (Joe Britt) writes:
  13. >does anybody know if this instruction does something non-obvious:
  14. >
  15. >        ldy #$02, y
  16. >
  17. >what i would EXPECT it to do is load into y the 16-bit quantity
  18. >pointed to by Y+2.
  19. >
  20. >is there any way that this instruction could load into y simply
  21. >y+2?  (is there any strangeness when the index register is the
  22. >same as the target register?)
  23. >
  24. >thanks!
  25. >joe
  26. >
  27. >
  28. USE   LEAY 2,Y  TO ADD 2 TO Y AND STORE BACK INTO Y.
  29.  
  30. LEN
  31. e
  32.