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 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: 906
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: 906
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: 678
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
Murphy/Exceed
prowler/nectarine ^ ..
wacek/arise
uneksija
Perplex/Offence
Electric/Extend
skull
Black/Angels
Andy/AEG
Hydrogen/Glance
Razdee
MCM/ONSLAUGHT
Mibri/ATL^MSL^PRX
Guests online: 354
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.6)
4 Mojo  (9.6)
5 Edge of Disgrace  (9.6)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 Wonderland XIV  (9.6)
9 Unboxed  (9.5)
10 Memento Mori  (9.5)
Top onefile Demos
1 Nine  (9.8)
2 Layers  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Libertongo  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Performers  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.2)
Top Cover Designers
1 Duce  (9.8)
2 Electric  (9.8)
3 Junkie  (9.6)
4 The Elegance  (9.5)
5 Mermaid  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.183 sec.