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 > Sprite Woes - help, anyone?
2003-02-14 17:51
Dr. Jay
Account closed

Registered: Jan 2003
Posts: 32
Sprite Woes - help, anyone?

I'm coding a demo that uses bitmaps, sprites, etc.

Here's the stats -

Screen @ $0800 and bitmap @ $2000 so
$28 -> $d018
$3b -> $d011

Now my sprite data is at $1000, so I have my sprite pointers set up like this:

$0bf8 $40
$0bf9 $41

..etc..

Now here's the clencher ... maybe I'm doing something wrong with banking, bits, whatnot, but this is killing me: the stupid @$@#$@# sprites won't show up at $1000! Instead, they've got garbage that looks like a horribly shifted character ROM. I can fill memory with $FF and confirm that $00 -> $7f work fine (I even see my routine at $0500 updating pixels with self-modifying code, etc) and I can point them to the bitmap using $80, $81, etc (works fine) but the $40 offset just gets me garbage. I've even filled $1000 - $1fff with $ff and set $40 and I still get ... goofy character ROM.

Now, either

(1) I'm a stupid idiot and have some banking wrong, but I thought my banks were set since the bitmap and screen are successfully coming from $2000 and $0800 (plus if I stick my sprites on zero page I see my zero page variables updated)

(2) there's some bug in WinVICE, which I'm using to test as I develop

Any comments?

P.S. $01 = $37
2003-02-14 17:53
Dr. Jay
Account closed

Registered: Jan 2003
Posts: 32
DOH. Once again I waste thread space. Here it is from the programmer's reference guide:

When VIC II chip is looking at bank 0 or bank 2, there is a ROM IMAGE of the character set. DOH!

Thanks.
2010-08-17 17:52
Warnock
Account closed

Registered: Sep 2007
Posts: 27
The address $1000 is usually used for sid files....(i.e.- Voicetracker). I've never seen anyone use this area for anything else. Therefore, addresses $1000 - $1fff are never used when I code my demo pages....or whatever I code. I leave that area structly for music.

Hope this helps,
Warnock/Style
2010-08-17 18:02
A3

Registered: Dec 2005
Posts: 362
Good job reviving a 7 year dead thread :P
2010-08-17 22:27
Merman

Registered: Dec 2002
Posts: 140
Quote: Good job reviving a 7 year dead thread :P

It's not RESERVED for SID files, but since you can't put graphic data there (because of the character ROM image) that's what most people use it for...
2010-08-18 06:03
enthusi

Registered: May 2004
Posts: 675
Same with $9000 in case anyone reads this :)
2010-08-18 06:15
Radiant

Registered: Sep 2004
Posts: 639
2010-08-18 06:16
Radiant

Registered: Sep 2004
Posts: 639
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
d0c
El Jefe/Slackers^sidD
Guests online: 128
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 No Bounds  (9.6)
7 Comaland 100%  (9.6)
8 Aliens in Wonderland  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.7)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Original Suppliers
1 Black Beard  (9.7)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Jazzcat  (8.6)

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