home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / m68k / 1322 < prev    next >
Encoding:
Text File  |  1992-11-05  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.sys.m68k
  2. Path: sparky!uunet!usc!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!mcdchg!mcdphx!gcall
  3. From: gcall@systemname.uucp (Glen Call)
  4. Subject: Re: arbitrary entry points
  5. Message-ID: <1992Nov4.153341.10980@phx.mcd.mot.com>
  6. Originator: gcall@
  7. Sender: gcall@systemname (Glen Call)
  8. Nntp-Posting-Host: tajmahal.phx.mcd.mot.com
  9. Organization: Motorola Computer Group Marketing
  10. References: <1992Oct26.192527.14411@jato.jpl.nasa.gov> <68485@cup.portal.com> <1992Oct31.194713.20523@netcom.com>
  11. Date: Wed, 4 Nov 1992 15:33:41 GMT
  12. Lines: 29
  13.  
  14.  
  15. In article <1992Oct31.194713.20523@netcom.com>, chet@netcom.com (Eric Chet) writes:
  16. |> In article <68485@cup.portal.com> Dan_E_Babcock@cup.portal.com writes:
  17. |> >jsr (a0) is a slightly confusing aspect of 68K assembly syntax. It means jump
  18. |> >to the addresss contained in a0, NOT jump to the address conatined in memory
  19. |> >pointed to by a0. This should solve your problem. :)
  20. |> >
  21. |> >Dan
  22. |> 
  23. |> I think of it this way Ax is an address register, it stores a address for me.
  24. |> I will jump to the address in (Ax).
  25. |> 
  26. |> JUst a thought
  27. |> 
  28.  
  29. Or look at it this way: data movement instructions calculate an effective
  30. address, then use it to read/write memory.  Other instructions, such as LEA,
  31. PEA, JSR, etc. calculate the effective address and use it directly.  That is why
  32. IMMEDIATE operands are not permitted with these instructions.
  33.  
  34. Hope this helps.
  35.  
  36. Glen
  37. ------------------------------------------------------------------------------
  38. Glen Call                          Technical Marketing Systems Engineer
  39. Motorola Computer Systems, Inc.    gcall@phx.mcd.mot.com or mcdapps!gcall
  40. M/S DW212                          phone: (602) 438-3408
  41. 2900 S. Diablo Way                 pager: 1-602-244-3252 Pager#2818 (digital)
  42. Tempe, AZ 85282                    FAX:   (602) 438-3534
  43.