home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / m68k / 1394 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.sys.m68k
  2. Path: sparky!uunet!mcsun!sun4nl!relay.philips.nl!philce!meulenbr
  3. From: meulenbr@ce.philips.nl (Frans Meulenbroeks)
  4. Subject: 68000 code question and optimalisation
  5. Message-ID: <1992Nov23.104011.9355@philce.ce.philips.nl>
  6. Sender: usenet@philce.ce.philips.nl (USENET post news)
  7. Organization: Philips Consumer Electronics, Eindhoven
  8. Date: Mon, 23 Nov 1992 10:40:11 GMT
  9. Lines: 23
  10.  
  11. Hi,
  12.  
  13. I discovered that I can do pc relative subroutine calls in two ways.
  14. 1) using bsr 
  15. 2) using jsr with d16(pc) addressing.
  16.  
  17. Assuming that the jump offset is greater than 128 bytes, is there any
  18. difference (except the opcode) in these two instructions?
  19. Or are there just two ways to do the same thing (like 
  20. move.l    #123456,-(sp) is the same as pea 123456)?
  21.  
  22.  
  23. Also does anyone have suggestions on how to optimize 68000 code.
  24. (eg. instructions or instruction patterns that can be replace by other
  25. more efficient ones)? A pointer to a good book/article on this topic is
  26. also welcome. I want to optimize for space without losing too much
  27. speed.
  28.  
  29. Thanks,
  30.  
  31. --
  32. Frans Meulenbroeks        Philips Research Laboratories
  33. preferred email address:     meulenbr@prl.philips.nl
  34.