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


Forums > C64 Pixeling > single-colour hires clashing
2009-09-28 17:29
clonK
Account closed

Registered: Aug 2008
Posts: 65
single-colour hires clashing

Hi,
I'm still a beginner so this is probably a simple problem, but I've spent many hours trying to sort it out :P

I can display multicolour bitmaps no problemo, but I just can't get these single-colour bitmaps down.

My code:
;single-colour bitmap exported from timanthes
;with bitmap data at $4000
*=$0801
lda #02
sta $dd00
lda #$38
sta $d011
lda #$a0
sta $d018
lda #$08
sta $d016
ldx #$00
lda #$10

setpic
sta $6800,x
sta $6900,x
sta $6a00,x
sta $6ae8,x
inx
bne setpic


When I run ths code I see my bitmap but there are a lot of clashes going on, mainly where there is fill.

Can anyone see where I'm going wrong?

Thanks all!
2009-09-28 17:34
WVL

Registered: Mar 2002
Posts: 885
Yes, the colors are not all #$10, they can also be #$01, #$00 or #$11. To fix things, you need to 'sort' the colors, so every 0 is a black pixel and every 1 is a white pixel.

There's a function in Timanthes which does that for you.
2009-09-28 17:43
clonK
Account closed

Registered: Aug 2008
Posts: 65
That makes sense. I guess black could be foreground or background and same for white.

Still trying to find the function in timanthes.

p.s. typo -> lda #$02
2009-09-28 18:01
clonK
Account closed

Registered: Aug 2008
Posts: 65
Sorted!
grassyass very much :)
2009-09-28 18:02
WVL

Registered: Mar 2002
Posts: 885
Quote: That makes sense. I guess black could be foreground or background and same for white.

Still trying to find the function in timanthes.

p.s. typo -> lda #$02


I think it's :

Layer -> Machine Specific -> C64 reindex

then you give a 1 to your background color, and a 2 to your foreground color. et voila!
2009-09-29 10:32
enthusi

Registered: May 2004
Posts: 674
Hires Editor V1.5
Hires Editor 1.5 also has a function to do this in case you need it native once...
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
Røly/Mayday!
Higgie/Kraze/Onslaught
teloni0
Asphodel
zzarko
theK/ATL
Mason/Unicess
kbs/Pht/Lxt
Guests online: 141
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

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