Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!iuvax!bsu-cs!jbwaters From: jbwaters@bsu-cs.UUCP (J. Brian Waters) Newsgroups: comp.sys.m68k Subject: Why does addq.w #n,sp work? Keywords: C asm addq Message-ID: <5005@bsu-cs.UUCP> Date: 7 Dec 88 22:20:48 GMT Distribution: na Organization: The Binary Bin Lines: 11 I have been looking at the assembly output of a C compiler and am puzzled to find that it sometimes uses, for example, the instruction addq.w #8,sp. I know that this clears the arguments pushed on the stack for a subroutine call. What I do not understand is why it is not a addq.l #8,sp as I thought the sp was a 32 bit counter. Why does it use the addq.w form rather then the addq.l? -- Brian Waters!{iuvax|pur-ee}!bsu-cs!jbwaters uunet!---/