Article View: comp.sys.amiga.tech
Article #10720Re: Adjusting the stack pointer
From: Dave B. Kinzer Price Rd. GEG
Date: Tue, 27 Dec 1988 17:29
Date: Tue, 27 Dec 1988 17:29
24 lines
1715 bytes
1715 bytes
In article <5047@garfield.MUN.EDU> john13@garfield.MUN.EDU (John Russell) writes: >>Manx-generated code uses the form >>addq.w #(4*N),sp >> ^ vs: >>addq.l #(4*N),sp >> ^ In article <1667@fbog.UUCP> dbk@fbog.UUCP (Dave B. Kinzer @ Price Rd. GEG) writes: The Manx generated code is faster (fewer instruction fetches from memory). In article <5569@cbmvax.UUCP> jesup@cbmvax.UUCP (Randell Jesup) writes: > Actually no, since addq can only deal with immediates between 1 >and 8. Of course, this is probably another case of the Manx assembler >output being misleading, and the assembler changes that to an adda.w. You're right, I missed the 'q' part. But just for humor, check table F-8 in your Programmers Reference Manual (fourth edition page 210) where it says 4 cycles for a word size, 8 for a long. This must be a misprint since both instructions perform the same function for address register destinations. | // GOATS - Gladly Offering All Their Support Dave Kinzer (602)897-3085| | // >> In Hell you need 4MB to Multitask! << uunet!nud!fbog!dbk | | \X/ #define policy_maker(name) (name->salary > 3 * dave.salary) |
Technical Details
Message-ID:
<1688@fbog.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!mcdchg!fbog!dbkReferences:
<5047@garfield.MUN.EDU> <1667@fbog.UUCP> <5569@cbmvax.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!mcdchg!fbog!dbk From: dbk@fbog.UUCP (Dave B. Kinzer @ Price Rd. GEG) Newsgroups: comp.sys.amiga.tech Subject: Re: Adjusting the stack pointer Summary: I'm wrong, plus strangeness Keywords: assembler A7 SP Message-ID: <1688@fbog.UUCP> Date: 27 Dec 88 17:29:07 GMT References: <5047@garfield.MUN.EDU> <1667@fbog.UUCP> <5569@cbmvax.UUCP> Reply-To: dbk@fbog.UUCP (Dave B. Kinzer @ Price Rd. GEG) Distribution: na Organization: Motorola Microcomputer Division, Tempe, Az. Lines: 24