Thread: Sine scroller
View Single Post
Old 14 April 2007, 23:21   #17
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
Another step forward...

I've been tweaking with my source code again this evening - I've posted the updated version in the zone...

Following your advice about testing, I made some changes:

I made the displayed screen 4 bytes wider so that I could blit the scrolltext characters off screen to the right and then scroll them on screen. After playing with my blitter shift scrolling routine for a bit it now works properly and scrolls the scrolltext across the middle of the displayed bitplane in a continuous loop.

First, I did this within the wait for vertical blank code you gave me and got it working that way. Next I put it all into the copper interrupt and got it working that way too.

One quick thing about the copper interrupt. You recommended using rte instead of putting the old address on the stack and doing an rts. So I changed the interrupt_done code from:

movem.l (sp)+,d0-d7/a0-a6
move.l cop_int_address,-(sp)
rts

to:

movem.l (sp)+,d0-d7/a0-a6
rte

but then the program didn't work properly, the scrolly still scrolled but it didn't quit when I pressed the left mouse button - am I missing something?
pmc is offline  
 
Page generated in 0.06783 seconds with 11 queries