Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user eightbitswide ! (Registered 2024-12-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Video bank selection...
2005-06-01 10:43
Bizzmo
Account closed

Registered: Mar 2005
Posts: 82
Video bank selection...

I'm in the process of re-learning to code! After 15 years or so I'm more than a little rusty so please excuse any silly questions!

I'm planning a little game, which is currently using the following memory configuration. (At the moment all this is stuffed at $C000. I want to use a bank without a ROM image so I can have as much memory available for graphics.

Data is currently at these offsets:

+$0000 - Screen Buffer 1
+$0400 - Screen Buffer 2
+$0800 - Character Set
+$1000 - Sprites Definitions...

Is this going to cause me a problem? Trying to load data to $D000 causes WinVice to do strange things! ;-)

Any tips would be appreciated!

Bizz.
 
... 20 posts hidden. Click here to view all posts....
 
2005-06-03 19:25
Frantic

Registered: Mar 2003
Posts: 1648
Oswald: Ok, so first you initialize a zeropage memory location with the correct $d018 value? (just kidding.. Nerd laughter: HIE HEHE HAHE HI HAHE HEAI HIE HEII HI I AEE HEEE ;)

Anyway.. I guess you hinted at a possible explanation for the decimal-phenomenon. Never thought of that. Probably because I never coded much BASIC.
2005-06-08 08:32
yago

Registered: May 2002
Posts: 333
Yeah, Oswald is right. The partly-hexadecimal, partly-decimal scheme is due to historical reasons.
Although "only" one-liners, these beasts evolve over the years, sometimes having old basic-stuff in it.
As I read through this Thread, there are indeed much better (faster+shorter) ways then "/16384", especially ">>14" or ">>$e" in hexadecimal ;-)

And to answer your question, autoboy: When seeing the Number 16384, my Mind switches instantly to hexadecimal and thinks: Cool, thats $4000 !
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
Magic/Nah-Kolor
Yugorin/Samar Produc..
kenji/dream
Alakran_64
TGS/The Lords
sailor/Triad
hedning/G★P
TheEnemy/TREX/THD
theK/ATL
Guests online: 107
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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