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 > Spritepointer to $1000 problem
2012-04-23 20:41
madman68
Account closed

Registered: Apr 2011
Posts: 20
Spritepointer to $1000 problem

Hello,

Maybe im dumb....probably but when i put my spritedata at $1000 and higher and i put my spritepointer at $07f8 on $40 (which would mean it points to 64x64 = 4096 = $1000) the data is not in the sprite??

I can not figure this out as it seems correct to me and this priciple works below $1000.

Please can anyone help me before i lose it? :)
2012-04-23 20:46
T.M.R
Account closed

Registered: Dec 2001
Posts: 749
Quoting madman68
Maybe im dumb....probably but when i put my spritedata at $1000 and higher and i put my spritepointer at $07f8 on $40 (which would mean it points to 64x64 = 4096 = $1000) the data is not in the sprite??


There's a shadow of the ROM character set at $1000 to $1fff - pointing sprites to that memory will display the character data (suitably mangled because it's a different "shape") rather than what's in the RAM under that shadow.
2012-04-23 20:51
madman68
Account closed

Registered: Apr 2011
Posts: 20
Is there no way to use this area for sprite data then?
Its so strange that this occurs, as in for example the programmers guide tells the spritepointers can be pointed to the whole 1th block....
2012-04-23 20:57
Mr. SID

Registered: Jan 2003
Posts: 424
Not just sprites, but no VIC data can be at $1000 to $1fff and also $9000 to $9fff. Pick a different VIC bank. The one at $4000 is fully useable, and so is the one at $c000, if you don't need to read-modify-write your data all the time.
2012-04-23 21:15
madman68
Account closed

Registered: Apr 2011
Posts: 20
Ok then, thanx for the info, i did not know this.
I will use $4000 or $c000.

Thanx again!
2012-04-24 07:51
ready.

Registered: Feb 2003
Posts: 441
that's why most SIDs are at located from $1000 :)
2012-04-26 10:50
ChristopherJam

Registered: Aug 2004
Posts: 1409
Hah! I'd never realised that that was why so many SIDs were located there. Obvious in hindsight.
2012-04-27 20:07
Digger

Registered: Mar 2005
Posts: 437
There was an Action Replay cartridge trick that you could have a font located at $1000 or $9000. I think it was discovered by Morris

Something to do with AR moving stuff around to it's internal memory when you've pressed the Freezer button. Can't remember exactly how it worked though. Anyone?
2012-04-27 21:46
Fresh

Registered: Jan 2005
Posts: 101
IIRC it involves setting a bit in $DE00 (bit 0?) to put c64 in ultimax mode: this way VIC accesses only RAM (btw with all known limitation in cpu addressing range).
2012-04-28 06:45
Morris

Registered: Sep 2005
Posts: 2
The trick Digger mentioned was used in a hidden part of one of Agony demos. Can't remember which one it was, though. Gotta do some diggin' ;)
2012-04-28 13:41
chatGPZ

Registered: Dec 2001
Posts: 11386
Pain

10 points for whoever explains how exactly the triggering of the hidden part works - we are still wondering =)
 
... 3 posts hidden. Click here to view all posts....
 
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
Linus/MSL
rikib80
rexbeng
grip
cba
void256
tlr
Epyx/TSA
Guests online: 118
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 No Listen  (9.6)
2 Layers  (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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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