[futurebasic] Re: [FB] Okay, so I have dyslexia (was: AIFF)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Wed, 13 Oct 1999 19:47:45 -0500
I wrote:

>I was trying to push parameters onto the stack like this:
>
> `  move.w  -(sp),^fRefNum%
>
> when I should have been doing it like this:
>
> `  move.w  ^fRefNum%,-(sp)
>

Joe Lewis Wilkins replied:

> Nice going Rick,
>
> You've pinpointed something that we probably need - an FB Assembler Editor -
> or at least something that checks the "basic" syntax of Assembler Routines.

Actually, my reversed-operand lines were valid assembler syntax--they just didn't
do what I was intending.  I was trying to copy data from my variables onto the
stack, but the syntax I was using copied data in the other direction (from the
stack to my variables).  A perfectly valid assembler instruction, but it just
left the wrong data on the stack--which is why FN SetupAIFFHeader kept returning
an error.

- Rick