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

Registered: Sep 2007
Posts: 28
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: 677
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
Narciso
Worluk
REBEL 1/HF
deetsay
Bob/Censor Design
csabanw
AMB/Level 64
CopAss/Leader
B.A./QUANTUM
Sychamis
macx
theK/ATL
Acidchild/Padua
Guests online: 95
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 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.215 sec.