home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12299 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: problem with movea.l
  5. Message-ID: <1992Aug14.042629.14309@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. References: <1992Aug13.123046.12142@lri.fr> <1992Aug13.194630.12721@dartvax.dartmouth.edu>
  8. Date: Fri, 14 Aug 1992 04:26:29 GMT
  9. Lines: 32
  10.  
  11. In article <1992Aug13.194630.12721@dartvax.dartmouth.edu> abs0@coos.dartmouth.edu (Kelvin Leung) writes:
  12. >jpr@sun4.lri.fr (Jean-Pierre Riviere) writes:
  13. >
  14. >
  15. >>Do you know of an assembler which would allow me
  16. >>to have a move and not a movea when the destination
  17. >>is an address register ?
  18. >>I can't do that neither with a8k nor Ncode.
  19. >
  20. >Just curious, why would you want to do that?  I don't have enough
  21. >experience to tell if 68000 allows you to do that.  However, you could
  22. >write a program which contains self-modifying code (leave some space in
  23. >your program by putting several lines of "nop").  Try looking up
  24. >a motorola 68k manual and putting a little code in your program which
  25. >replaces the "NOP"s with a move.l <ea>,An  (I don't know if this will work
  26. >though...)
  27. >
  28. >Good luck,
  29. >Kelvin
  30. >e-mail: abs0@coos.dartmouth.edu
  31.  
  32.  
  33.     ...Because, then movement to an address register would too affect the
  34. condition codes just as they are when a data register or memory location is
  35. the destination of a move instruction. 
  36.  
  37.     Beats me if this is possible. I couldn't see any difference between the
  38. instruction clock cycles of the two. Probably a hardware constraint, pretty
  39. stupid (IMHO) if not. 
  40.  
  41. jeff
  42.  
  43.