home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.m6809
- 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
- From: popyackl@lonex.rl.af.mil (Leonard J. Popyack)
- Subject: Re: instruction weirdness
- Message-ID: <1992Aug28.121044.14431@lonex.rl.af.mil>
- Keywords: ldy, help, actin' funky
- Organization: RL
- References: <71619@apple.Apple.COM>
- Date: Fri, 28 Aug 92 12:10:44 GMT
- Lines: 20
-
- In article <71619@apple.Apple.COM> britt@Apple.COM (Joe Britt) writes:
- >does anybody know if this instruction does something non-obvious:
- >
- > ldy #$02, y
- >
- >what i would EXPECT it to do is load into y the 16-bit quantity
- >pointed to by Y+2.
- >
- >is there any way that this instruction could load into y simply
- >y+2? (is there any strangeness when the index register is the
- >same as the target register?)
- >
- >thanks!
- >joe
- >
- >
- USE LEAY 2,Y TO ADD 2 TO Y AND STORE BACK INTO Y.
-
- LEN
- e
-