Article View: comp.sys.amiga.tech
Article #10669Adjusting the stack pointer
From: John Russell
Date: Thu, 22 Dec 1988 05:21
Date: Thu, 22 Dec 1988 05:21
18 lines
872 bytes
872 bytes
Manx-generated code uses the form
addq.w #(4*N),sp
^
to reset the stack pointer after calling a function with N (long) args on the
stack. Examples which adhere to the syntax of other Amiga assemblers use
addq.l #(4*N),sp
^
Is the Manx format dangerous if the stack is being incremented past a
64k boundary? Is there a reason to use one and not the other?
John
--
"Version 2.0 is advertised as supporting cursor keys."
-- somewhat left-handed endorsement of a Mac word-processor :-)
Technical Details
Message-ID:
<5047@garfield.MUN.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!garfield!john13Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!garfield!john13 From: john13@garfield.MUN.EDU (John Russell) Newsgroups: comp.sys.amiga.tech Subject: Adjusting the stack pointer Keywords: assembler A7 SP Message-ID: <5047@garfield.MUN.EDU> Date: 22 Dec 88 05:21:41 GMT Distribution: na Organization: CS Dept., Memorial U. of Newfoundland, St. John's Lines: 18