A89: ahh.. sorry.. en error
[Prev][Next][Index][Thread]
A89: ahh.. sorry.. en error
LCD_MEM is $4c00 of course..
$4c10 is the address I use in my codeing to get rid of sprite clipping on all
sides.. mixed them together...
sorry for the confusement..
//Olle
Olle Hedman wrote:
>
> ah! yea..
> you see, here box_x is the value stored in box_x and #box_x is the _address_ of
> box_x.. what move.w #box_x,d0 tries to do is to transform the address of box_x
> into a 16bit number and store it in d0.. my guess is that this is what is not
> supported and gives the error..
> note that the line "move.l #box_sprite,a0" is correct.. you want the address
> there..
> LCD_MEM should have the # too, because it is just a equ for the number $4c10,
> and it is move.l #$4c10,a0 he wants, and not move.l $4c10,a0 (which would move
> the first long of the lcdmem to a0, and not the address $4c10)
>
> //Olle
>
> BLoWh0Le@aol.com wrote:
> >
> > it's probably these lines that are the problem. you don't need the number
> > sign before box_x, box_y, box_sprite, or LCD_MEM. at least that's what i
> > think, so don't bite my ass if i'm wrong.
> >
> > In a message dated 1/5/99 6:08:27 AM Pacific Standard Time, S43R80@aol.com
> > writes:
> >
> > << box_sprite_setup:
> > move.w #box_x,d0
> > move.w #box_y,d1
> > move.l #box_sprite,a0;displays box
> > jsr graphlib::put_sprite
> > rts
> >
> > box_erase_setup:
> > move.w #box_x,d0
> > move.w #box_y,d1
> > move.l #box_sprite_erase,a0;erases box
> > jsr graphlib::put_sprite
> > rts
> >
> > drawgrid:
> > move.l #LCD_MEM,a0;line 1 >>
Follow-Ups:
References: