Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums

Forums > C64 Coding > AGSP stop
2018-04-08 20:03

Registered: Aug 2004
Posts: 51
AGSP stop

How to "stop" AGSP and show another static gfx starting at some position of the screen? AGSP starts from the top of the screen and I would like to show static logo at the bottom of the screen.
VSP is possible to stop with "anti" VSP, but what to do with Linecrunch? Is it possible with some trickery or do I have to move regions of mem to show gfx in a right place?
2018-04-08 20:31

Registered: Apr 2002
Posts: 4255
anti linecrunch is what I can think of.
2018-04-08 20:44

Registered: Aug 2004
Posts: 51
I would like to not loose to much raster lines (max 1 char) for that in a "switch area". Any examples (demo link)? Thanks in advance.
2018-04-08 21:32

Registered: Apr 2002
Posts: 4255
I think if there was another method to skip current char row, or manipulate char row displayed it'd had been discovered already.

better redesigning your effect, so that static part is on the upper area.
2018-04-09 05:23

Registered: Aug 2004
Posts: 805
Yes, the only way you can restore the character pointer to what it would have otherwise been is with anti-AGSP.

Even with Oswald's suggestion of swapping the AGSP area with your logo, you're still stuck running an AGSP routine in the middle of the screen. That would make it a lot easier to display graphics over that area mind; check out GOLC for one technique..

Simplest route of course would be to display your logo with sprites instead of chars/bitmap.
2018-04-09 11:03

Registered: Dec 2001
Posts: 241
Maybe it is feasible to just stick to VSP and do the y-mopvement the "hard" way, i.e. do softscrolling via $d011 but the hardscrolling by copying the gfx data. Ofcourse depends on scrolling speed and what other heavy duty tasks the cpu has to cope with;)

If you do it the other way around (copy the gfx data for the logo), you'll be forced to copy all data within one frame (whenever there is a linecrunch-event) whereas you have up to 8 frames time for the y-hardscroll as skteched above.

And this "anti"-VSP is needed in any case if I get it right atm...
2018-04-09 18:37

Registered: Jan 2005
Posts: 344
Like others have mentioned, it's probably best to move the AGSP effect higher in the screen.

But displaying a logo after the AGSP can be achieved when using a charset-based logo. Just use a different screenram you can just 'plot' a 6x40 logo using the AGSP X and Y coords to store the logo at the correct position (wrapping around when required, which will slightly slow down the coying).

Of course sprite pointers will at some point be used as screen data, so unless you adjust the AGSP movement, sprites won't be possible.
Another possibility, as others have mentioned, is using just sprites. You can make 40-char wide dycp with just 14 sprites.
2018-04-09 20:03

Registered: Aug 2004
Posts: 51
Thanks guys for the tips. I can see some workarounds and will try to find most optimized to get best looking effect.
2018-04-09 20:21

Registered: Apr 2002
Posts: 4255
"40-char wide dycp with just 14 sprites."

2018-04-09 22:52

Registered: Aug 2004
Posts: 805
Well, you know, each sprite is 3 chars wide, so 14*3=42, enough to cover the width of the screen.

Just write $3fff to register $d015 to enable them.

(No time to open borders though, with all that DMA going on.)
2018-04-10 05:48

Registered: Sep 2004
Posts: 185
14 sprites at same rasterline(s)?
did i miss something? :D
... 7 posts hidden. Click here to view all posts....
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Users Online
Guests online: 37
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 Comaland 100%  (9.6)
5 The Shores of Reflec..  (9.6)
6 Wonderland XII  (9.6)
7 Lunatico  (9.6)
8 We Come in Peace  (9.5)
9 Incoherent Nightmare  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 FMX Music Demo  (9.6)
2 Daah, Those Acid Pil..  (9.5)
3 Pandemoniac Part 2 o..  (9.5)
4 Treu Love [reu]  (9.5)
5 Merry Xmas 2017  (9.4)
6 Arok 20 Invitation  (9.4)
7 Dawnfall V1.1  (9.4)
8 In Memoriam BHF  (9.4)
9 Dawnfall  (9.4)
10 Synthesis  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top Logo Graphicians
1 Pal  (9.5)
2 Jailbird  (9.3)
3 Yazoo  (9.3)
4 Elko  (9.2)
5 Mermaid  (9.2)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.061 sec.