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 > D017 stretch
2017-01-31 09:47
Trash

Registered: Jan 2002
Posts: 122
D017 stretch

I have a little while trying out som d017-stretching-code-magic-stuff. It seems impossible to stretch sprite 00 when it is alone a raster row.
Can anyone confirm it is possible or tell med where I am going wrong? I just cant get the timings right and I've tried all combinations (I think?).

I've put 1 -> d017 on all cycles after dec $d016 and then 0 on all cycles after that but for me it seems impossible...

Any help at all would be greatly appriciated!

lda #1
ldy #8
-		dec $d016		;  6 Removes the border
		cmp #$c9
		sta $d017		; Has been moved around
		cmp #$c9
		bit $ea
		sty $d017		; Has been moved around
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		cmp #$c9
		sty $d016		; Makes sure the border is removable
		inx
		cpx #15
		bne -
2017-01-31 13:53
Oswald

Registered: Apr 2002
Posts: 5094
you sure d017 update happens on the same line ? according to my not exact trial and error knowledge d017 stretch always works until you do it within the same line.
2017-01-31 15:08
Trash

Registered: Jan 2002
Posts: 122
Quote: you sure d017 update happens on the same line ? according to my not exact trial and error knowledge d017 stretch always works until you do it within the same line.

you set d017 to expanded on line X and you clear it before cycle 16 on line x + 1, then you have a stretched row.


I might have figured out my problem however, with one sprite active (or possibly on some combination of sprites) you cant remove the sideborder while stretching since the first write must reside where we remove the border.
2017-01-31 15:19
Skate

Registered: Jul 2003
Posts: 494
@Trash: never use sprite #0 with side-border stuff. start using sprites in reverse order like #7, #6 etc.

However, if you disable the badlines, all 8 sprites + sprite stretching works fine together.
2017-01-31 15:25
Trash

Registered: Jan 2002
Posts: 122
Quote: @Trash: never use sprite #0 with side-border stuff. start using sprites in reverse order like #7, #6 etc.

However, if you disable the badlines, all 8 sprites + sprite stretching works fine together.


I need to be able to stretch a single sprite on a line, i dont want all eight sprites there...

But you are right I really shouldnt use sprite 0...
2017-01-31 16:12
The Phantom

Registered: Jan 2004
Posts: 360
Trash.

Obviously my last comment didn't go through..

You CAN remove the sideborder while stretching.

Censor design showed us that - NTSC II [ntsc]

I have some source code if interested. After seeing that demo, I had to do it, I had to. While my routine isn't as smooth, I was able to do it without much effort. If interested, PM me your email and I can send you the source.
2017-01-31 16:31
Trash

Registered: Jan 2002
Posts: 122
Quote: Trash.

Obviously my last comment didn't go through..

You CAN remove the sideborder while stretching.

Censor design showed us that - NTSC II [ntsc]

I have some source code if interested. After seeing that demo, I had to do it, I had to. While my routine isn't as smooth, I was able to do it without much effort. If interested, PM me your email and I can send you the source.


Ofcourse I can remove the sideborder while stretching as seen in Cocktail and various other demos but what I can't do is have a single sprite on a line and stretch it while still removing the sideborder.
2017-01-31 17:14
Hein

Registered: Apr 2004
Posts: 954
You don't remove the badline with some FLD, right? If you can do 8 on a badline and open borders, woohoo!
2017-01-31 18:32
Trash

Registered: Jan 2002
Posts: 122
Quote: You don't remove the badline with some FLD, right? If you can do 8 on a badline and open borders, woohoo!

I have no badlines to worry about, I have opened the border with bit 4 = 0 in d011, I don't want eight sprites on the row, I need to it be only 1.
2017-01-31 18:53
Hein

Registered: Apr 2004
Posts: 954
If you have a working stretcher with 8 sprites, you can disable 7 sprites and add 7 NOPs in your loop, 1 NOP for each disabled sprite. Should work fine.
2017-01-31 19:33
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: I have no badlines to worry about, I have opened the border with bit 4 = 0 in d011, I don't want eight sprites on the row, I need to it be only 1.

Never use sprite #0 when fiddling with side border stuff as a rule of thumb.
 
... 11 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 - 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
Andy/AEG
TheRyk/MYD!
Unlock/Padua/Albion
Chesser/Blazon
B.A./QUANTUM
Visage/Lethargy
Alakran_64
LordCrass
E$G/HF ⭐ 7
algorithm
Abynx/Wavefx
Airwolf/F4CG
Wayne/Art Ravers
Guests online: 102
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 Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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