Re: LF: Word<-->Long Values
[Prev][Next][Index][Thread]
Re: LF: Word<-->Long Values
On Sun, 8 Dec 1996, Bendzick wrote:
> Is it possible to move a word value into a long value; i.e.:
>
> move.w #12000,d0
> jsr flib[random]
> add #16000,d0
> move.w d0,c
> (where c was dc.l $00000000--I know this is not how I would actually
> perform the move, that's why I'm asking.)
>
> How could I do this? The reward will be the eventual release of a
> *classic* for the 82 (is there such a thing?) but for Fargo.
Try this:
at the beginning, write CLR.L d0, or MOVE.L #0,D0 Then make the
final line MOVE.L D0,c(PC) -- the (PC) is necessary for relocation
problems(I think)... look at some source code... This should do what you
are wanting.
>
> -Michael Bendzick
> bendzick@millcomm.com
>
References: