Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user eightbitswide ! (Registered 2024-12-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > D011 scrolling
2004-06-08 00:17
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
D011 scrolling

Hi,

What is the best rasterline to flip the D011, when
scrolling the screen ?

No FLD!

Plain old scrolling ?

I have timing error, so the text jumps a bit.
Scroll the colorram too in same scan, takes a lot
of time..

Thanks for ANY help!!
 
... 34 posts hidden. Click here to view all posts....
 
2004-06-09 13:54
Oswald

Registered: Apr 2002
Posts: 5094
I bet that was horizontal hardware scrolling :)

just do a dec/inc d011 (or inc dec ? cant recall) on the last top border rasterline, and the 1st column of the screen will start where you do the trick, needs cycle exact timing.
2004-06-09 14:40
Stingray
Account closed

Registered: Feb 2003
Posts: 117
Thanks, sounds like you get horizontal scrolling by inc/dec vertical scroll bits. Have I got that right cause that sounds pretty freaky. So you just chuck new bytes down either far left or far right (depending on which way you are scrolling) column of the screen once you've scrolled eight bits?
2004-06-10 08:55
Oswald

Registered: Apr 2002
Posts: 5094
here is how it works:

http://www.minet.uni-jena.de/~andreasg/c64/vic_artikel/vic_arti...

generally it juts moves the place of the first column of the screen, and the screen will wrap around, so before the first coulmn you get the last.
2004-06-10 08:57
Oswald

Registered: Apr 2002
Posts: 5094
oops, I thought the link will jump to the right place, but it does not.

read under:3.14.6. DMA DELAY
2004-06-10 14:17
Stingray
Account closed

Registered: Feb 2003
Posts: 117
Thanks, had a quick read of it, sounds pretty complex to. If the screen can only wrap around I can't see how it could have been used in a game like Mayhem, unless there is a way of changing only the bytes in the first or last column. Even if it's not the trick they used it's still pretty freaky.
2004-06-10 14:59
CyberBrain
Administrator

Posts: 392
DMA DELAY has often been used in the good old wanker-effect. You know... Where you move a logo left/right by a sinus movement. It's called wanker-effect because the movement looks like.. err... wanking. (if you use double-sinus it looks like drunk wanking)
2004-06-10 18:56
Puterman
Account closed

Registered: Jan 2002
Posts: 188
For more advanced wanking techniques, please consult the ever popular Wank Article.
2004-06-11 07:43
AmiDog

Registered: Mar 2003
Posts: 97
Well, not that I know what I'm talking about but anyway. I assume that by using DMA delay, one only need to copy 25 bytes rather than 1000 when scrolling a "full column"? I.e. replace the column which wraps?
2004-06-11 08:09
Oswald

Registered: Apr 2002
Posts: 5094
stingray: the explanation is complex, the theory codewise is simple: do a dec d011 inc d011 on the last top border rasterline in the middle of the screen with a straight irq, and you will see how it works.

or to explain it in another way:

lets say the screen has just 10 columns:

default state:

0123456789

dma delay:

dec d011
inc d011
\/
6789012345

to update the screen you just change the columns that are actually at the leftmost, rightmost on the screen.
amidog: right.
2004-06-11 08:13
Oswald

Registered: Apr 2002
Posts: 5094
ofcourse csdb was "wise" enough to remove the necessary spaces.. argh.. once again:

dec d011
inc d011
____\/____
6789012345
Previous - 1 | 2 | 3 | 4 | 5 - 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
Mason/Unicess
REBEL 1/HF
Mojzesh/TGR🇬🇧
iAN CooG/HVSC
Alakran_64
rexbeng
pcollins/Quantum
jmagic
.jetan/AI-supported ..
lallafa
SoNiC/Onslaught/tOM
Guests online: 94
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 Jazzcat  (9.5)
3 hedning  (9.4)
4 Elwix  (9.1)
5 Remix  (9.1)

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