Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user dstar ! (Registered 2024-05-25) 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: 886
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: 886
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: 675
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
Brataccas/HF
dstar
Flex/Artline Designs
PAL/Offence, Fairlig..
Dano/Padua
Guests online: 86
Top Demos
1 Next Level  (9.8)
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 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Covert Bitops  (9.4)
2 Nostalgia  (9.4)
3 Oxyron  (9.3)
4 Booze Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (9.9)
2 Mirage  (9.8)
3 Mikael  (9.7)
4 Lobo  (9.7)
5 Archmage  (9.7)

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