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