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


Forums > C64 Coding > linecrunch problems
2003-03-10 13:47
Oswald

Registered: Apr 2002
Posts: 5017
linecrunch problems

Hi masterz :)

I have a working linecrunch routine. What I cannot do with it is fine Y scrolling. If I add an extra sta d011 instruction after the linecrunch loop to set YSCROLL, the whole thing starts to jump up and down. even if I wait for the nearest badline to occur. What is the solution ?
 
... 3 posts hidden. Click here to view all posts....
 
2003-03-12 08:34
Oswald

Registered: Apr 2002
Posts: 5017
HCL you're my man! :)

I never made such a routine, so I did not know that the linecrunch area must be kept the same using fld. I will try this then, and let you know about the result.

and yes, I was thinking about, that setting yscroll after doing the linecrunch loop might add extra unexpected effects. Thats why I tried to wait for the nearest badline and do it there. I also tried to find out that what yscroll valeus interferes with the linecrunch loop, but I found no rule on that, looked random to me...

hmm btw I dont get it, why and how do you fill the rest with fld ? like.. I want 25 charlines to be linecrunched..
if I crunch 10 lines, then I have to push the screen down by 15 rasterlines using fld ? doesnt seem a logical idea to me :) explain more please :)

2003-03-12 09:25
HCL

Registered: Feb 2003
Posts: 716
Normally when you do linecrunchers and such, you want a constant area up there to be occupied with it. The visible graphics should be undependant of the routine that makes it move.

Therefore, you always have to consider the largest amount of lines you want to crunch. Let's say 25, to get the whole screen. So, as the picture swings up and down, you may in one moment need to crunch 10 lines, the other 15 lines you waste with an fld-routine. When all 25 lines are wasted, with linecrunch or fld, you set the y-scroll value.

It's still possible that you initiate another linecrunch with the d011-store for the y-scroll, but it will most likely be easier to find the bug.

Hope this helps.
2003-03-12 09:36
Testicle
Account closed

Registered: Sep 2002
Posts: 131
is the combination of linecrunch + fld to waste the remaining rasterlines always necessary, or can you skip the usage of fld, when there's nothing more to display on screen _under_ the linecrunch-effect?

if i have a scroller in the upper half on the screen and the linecrunch-routine in the lower half with nothing else on srceen, do i then need to use fld, too?
2003-03-12 10:09
HCL

Registered: Feb 2003
Posts: 716
If you want a constant area to be occupied, yes.
2003-03-12 11:33
Testicle
Account closed

Registered: Sep 2002
Posts: 131
thanks! :)
2003-03-12 13:21
Oswald

Registered: Apr 2002
Posts: 5017
HCL: ahaaa I see !! :) but logically thinking adding fld to my routine wont solve the problem.. anyway I will give it a try, maybe fld somehow magically will remove the bug :)

more questions:

do you:
-start the linecrunch loop at the same rasterline always
-reset yscroll at the bottom border to some constant value
-use the value left by the linecrunch routine in d011 for yscroll
-or set a new one after the fld ?
-or let fld act as yscroll ?
2003-03-13 12:41
HCL

Registered: Feb 2003
Posts: 716
Answers out of order.. (?)

-start the linecrunch loop at the same rasterline always

Yes.

-reset yscroll at the bottom border to some constant value

no, not necessary. But if you'd like to explore how VIC really behaves, then perhaps it's a good idea. Hint, You don't really need to initiate the first badline, you can start crunching on the very first visible char-line ($30 or something..). Check for example "Interruptus Retriggerus", the 400 vertical rasters (it's more simple than the 216). Also check the title screen of "Royal Arte", and get confused ;)

-use the value left by the linecrunch routine in d011 for yscroll

No, set it after the last crunched line to desired value.

-or set a new one after the fld ?

Yes.

-or let fld act as yscroll ?

No.

Well, these are just standard trix to make it work, perhaps it's possible to minimize the occupied area a bit.

And also.. hmm.. it must be easier to get some good old demo and check out how it's done, than interpreting my answers, isn't it!? ;)
2003-03-14 00:08
chatGPZ

Registered: Dec 2001
Posts: 11108
get Babylon V/TWG :o) also this very effect is explained by ivo himself in interupt-tutorial on magic-disc ... unfortunatly in german :=P however there is documented source that might still help. (no i dont quite remember what issue(s) it was :=P)
2003-03-14 10:48
Oswald

Registered: Apr 2002
Posts: 5017
well, reverse engineering doesnt really works for me, I always could just steal little ideas, tricks, doing that :)

ok, I havent done anything to the code since starting the thread, will let you know next monday about my experiences :)

thanx for all the help so far :)
2003-03-15 17:31
Krill

Registered: Apr 2002
Posts: 2839
Hmm... I learned almost everything by reverse-engineering. =D One almost sole exception would be how to divide bit-wise. Hmm... but I guess one can only do such things with extreme amounts of geekiness, which naturally wears off while getting older ;)
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
Advanced
Users Online
Acidchild/Padua
Krill/Plush
Scooby/G★P/Light
Martin Piper
Alta
CA$H/TRiAD
Guests online: 131
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.236 sec.