
								  __|     \      \ |  
								\__ \    _ \    .  |  
								____/_)_/  _\_)_|\_|_)
							       sleepless at night 2013
								  Seanser/BMP2MC 1.0
								

Im presenting you (another) bitmap to C64-multicolor converter.

How to use ?
------------
Two windows will appear after starting the .exe.
The first one contains all control-panels - the second one a view of the remapped bitmap (on the left side) and a view of the original picture (on the right side).

In the first window do the following:
-------------------------------------

1. load an bitmap (320x200 with reduced color depth to 4)
2. change colors (if wanted) + press remap
3. save as .prg

DONE !

If the result isnt what you expected - press the reset button.


The written file uses the following format:
-------------------------------------------
bytes		function

1		background color $D021
8000		bitmap data
1000 		colormem (beginning at $D800)
1000		charmem /screenram


a loading example:
-------------------
*=$801

        BYTE  $0B, $08, $0A, $00, $9E, $32, $30, $36, $34, $00, $00, $00

*=$5FFF ; -1 byte for BG Color
incbin "pictures.prg"



*=$810

        lda $DD00
        and #%11111100
        ora #%00000010 ; Change Bank to 1
        sta $DD00

        lda $5FFF
        sta $d021
        lda #0
        sta $d020

        ;Multicolor bitmap-mode

        lda $d011
        ora #32
        sta $d011

        lda $d016
        ora #16
        sta $d016


        lda #08        ;screenram at $4000 , bitmap at+$2000
        sta $d018
        
        ldx #0

cppy2                   ; copy colormem
       lda $7f40,x
        sta $d800,x
        lda $8040,x
        sta $d900,x
        lda $8140,x
        sta $da00,x
        lda $8240,x
        sta $db00,x
        inx
        bne cppy2
        ldx #0

cppy                    ; copy screenram
        lda $8328,x
        sta $4000,x
        lda $8428,x
        sta $4100,x
        lda $8528,x
        sta $4200,x
        lda $8628,x
        sta $4300,x
        inx
        bne cppy
loop
         jmp loop

Now have fun using it - or not :-)
