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 > vertical raster split
2015-01-09 16:15
xIII

Registered: Nov 2008
Posts: 210
vertical raster split

After a lot of trial and error, looking into other code and even more frustrating hours I finally think I understand how to do vertical rastersplits without flickering. Hooray hooray... but ... now I got this strange fenomena that in the middle of my rasterbars this 3 chars appear, on every line.

Anyone an idea what causes these characters to appear ?

this is a short extract of the code:
ldy #88
!loop: lda raster1,y // 4
sta $d020 // 4
lda raster2,y // 4
sta $d021 // 4
lda raster1,y // 4
sta $d021 // 4
lda raster2,y // 4
sta $d021 // 4
lda raster1,y // 4
sta $d021 // 4
lda raster2,y // 4
sta $d021 // 4
lda $d012 // 4
and #%00000111 // 2
sta $d011 // 4
dey // 2
bpl !loop- // 3
 
... 2 posts hidden. Click here to view all posts....
 
2015-01-09 17:25
Chesoner

Registered: Apr 2013
Posts: 29
It has to do with $d011.

Change these lines :

.var rl1 = $32
.var rl2 = $32+8*12

in

.var rl1 = $38
.var rl2 = $38+8*12

The "chars" are then shifted to the right.
2015-01-09 17:49
xIII

Registered: Nov 2008
Posts: 210
@Chesoner: true, but they are still visible, so that's not a solution.

if I change $32 to $10 (or something else in the upper border) the chars are gone but also the splits are gone :p
2015-01-09 18:27
Mace

Registered: May 2002
Posts: 1799
Isn't this know as the FLI bug?
2015-01-09 18:34
Chesoner

Registered: Apr 2013
Posts: 29
If i put it on $36 then i see no bug in winvice, only rasters.
2015-01-09 20:58
xIII

Registered: Nov 2008
Posts: 210
@chesoner: true again :) thanx for checking !

But does anyone have a good explenation for the appearing chars ?
2015-01-09 21:21
Chesoner

Registered: Apr 2013
Posts: 29
Quote: @chesoner: true again :) thanx for checking !

But does anyone have a good explenation for the appearing chars ?


What Mace said.
2015-01-09 23:19
Pantaloon

Registered: Aug 2003
Posts: 124
and there is a bug in the code (will cause problems later on :))

irq2: sta $02
sta $03
sta $04
2015-01-10 13:22
Oswald

Registered: Apr 2002
Posts: 5094
with fld (tear open screen pushing it down) you can achieve more splits, but gfx is not possible. add 01 to d012 + and #07 ora #$10 + tweak horizontal timing until good.
2015-01-10 14:21
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
But does anyone have a good explenation for the appearing chars ?

it happens when you trigger the badline condition in a way that the 3 pre-DMA cycles are within the visible screen area. in those 3 cycles the VIC fetches the videoram data from "floating" bus (which will usually result in $ff). (i think the vic article explained in it more detail)
2015-01-11 12:25
xIII

Registered: Nov 2008
Posts: 210
@pantaloon: I already corrected that ;)
@oswald: will try that, thx
@Groepaz: thank you !
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
Mibri/ATL^MSL^PRX
REBEL 1/HF
Perplex/Offence
Inge/HVSC
Mike
Stratford/Xenon
Walt/Bonzai
lA-sTYLe/Quantum
sln.pixelrat
4gentE/ΤRIΛD
iAN CooG/HVSC
LightSide
zscs
The MeatBall
t0m3000/hf^boom!^ibx
𝘁𝗡𝗚/FairLight
Hairdog/BOOM!^Dream
katon/Lepsi De
Guests online: 132
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
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 Triad  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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