A89: Re: Re: Re: Direct Input and Other Questions Part II


[Prev][Next][Index][Thread]

A89: Re: Re: Re: Direct Input and Other Questions Part II





not from this ... try using the debugger


>
>hmm.. well, that makes it go a tad farther.. but I still get an "Illegal
>instruction error" about one or 2 loops through... Any idea why?
>
>Ahmed El-Helw <ahmed@ticalc.org>
>   Program Ideas and Upcoming Programs
>   the ticalc.org project - http://www.ticalc.org/
>_______________________________________
>http://hail.icestorm.com/asm/
>ICQ: 3350394
>
>----- Original Message -----
>From: Dux Gregis <dux@acz.org>
>To: <assembly-89@lists.ticalc.org>
>Sent: Sunday, February 28, 1999 7:30 AM
>Subject: A89: Re: Direct Input and Other Questions Part II
>
>
>>
>>
>>
>>
>>
>>>
>>>In case my second question was a bit "vague", here is the code I had to
>>move
>>>the sprite.. I put a "bsr CheckFire" right after the label KeyLoop from
>the
>>>past email.
>>>
>>>
>>>CheckFire:
>>> move.l ball,d0                    ;checks if ball is on screen - if not,
>>>then just return
>>> cmp #0,d0
>>> beq DoneCheckFire
>>>
>>> bsr DrawBall                     ;remove
>>> move.l baly,d0
>>> sub.l #1,d0                        ;move
>>> cmp #0,d0                         ;if at top of screen
>>> beq RemoveFire             ;remove
>>> move.l d0,baly                 ;else put y-1=y
>>> bsr DrawBall                    ;draw and return
>>>DoneCheckFire:
>>> rts
>>
>>you branched to these routines, you didn't call them .. replace this rts
>>with bra keyLoop
>>
>>>
>>>Thanks In Advance.
>>>
>>>Ahmed El-Helw <ahmed@ticalc.org>
>>>   Program Ideas and Upcoming Programs
>>>   the ticalc.org project - http://www.ticalc.org/
>>>_______________________________________
>>>http://hail.icestorm.com/asm/
>>>ICQ: 3350394
>>>
>>>________________________________________________________
>>>NetZero - We believe in a FREE Internet.  Shouldn't you?
>>>Get your FREE Internet Access and Email at
>>>http://www.netzero.net/download.html
>>>
>>>
>>
>>
>
>________________________________________________________
>NetZero - We believe in a FREE Internet.  Shouldn't you?
>Get your FREE Internet Access and Email at
>http://www.netzero.net/download.html
>
>