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
Account closed

Registered: Apr 2013
Posts: 28
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
Account closed

Registered: Apr 2013
Posts: 28
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
Account closed

Registered: Apr 2013
Posts: 28
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: 5017
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: 11108
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
Meikel aka ZUX/Sparks
Airwolf/F4CG
Spinball/Excess
Krill/Plush
Thunder.Bird/HF/MYD!..
Magic/Nah-Kolor
csabanw
Viti/Hokuto Force
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 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
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.078 sec.