| |
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!
|
|
| |
WVL
Registered: Mar 2002 Posts: 907 |
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. |
| |
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 |
| |
clonK Account closed
Registered: Aug 2008 Posts: 65 |
Sorted!
grassyass very much :) |
| |
WVL
Registered: Mar 2002 Posts: 907 |
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! |
| |
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...
|