base:displaying_a_picture_at_2000
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | base:displaying_a_picture_at_2000 [2015-04-17 04:31] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Displaying a bitmap at $2000 the most simplest way ==== | ||
+ | You may have wondered how is this possible to display a multicolour bitmap pic at $2000 the most simplest way? How can I do it with a Koala paint picture? Well, it is simple. Before you're able to display the picture' | ||
+ | < | ||
+ | ;Picture displayer | ||
+ | |||
+ | bordercolour = 0 | ||
+ | backgroundcolour = 0 | ||
+ | vidmem = $4000 | ||
+ | colmem = $4400 | ||
+ | |||
+ | !to " | ||
+ | * = $2000 | ||
+ | !binary " | ||
+ | * = $4000 | ||
+ | !binary " | ||
+ | * = $4400 | ||
+ | !binary " | ||
+ | |||
+ | * = $4800 ;Where main code lies | ||
+ | sei | ||
+ | | ||
+ | lda # | ||
+ | ldx # | ||
+ | sta $d020 | ||
+ | stx $d021 | ||
+ | lda #$3b ;<--- Turn on bitmap mode | ||
+ | ldx #$18 ;<--- Turn on all bitmap characters | ||
+ | ldy #$03 | ||
+ | sta $d011 | ||
+ | stx $d018 | ||
+ | stx $d016 | ||
+ | sty $dd00 | ||
+ | ldx #$00 | ||
+ | setpic lda vidmem,x | ||
+ | sta $0400,x | ||
+ | lda vidmem+$100, | ||
+ | sta $0500,x | ||
+ | lda vidmem+$200, | ||
+ | sta $0600,x | ||
+ | lda vidmem+$2e8, | ||
+ | sta $06e8,x | ||
+ | lda colmem,x | ||
+ | sta $d800,x | ||
+ | lda colmem+$100, | ||
+ | sta $d900,x | ||
+ | lda colmem+$200, | ||
+ | sta $da00,x | ||
+ | lda colmem+$2e8, | ||
+ | sta $dae8,x | ||
+ | inx | ||
+ | bne setpic | ||
+ | hold lda $dc01 | ||
+ | cmp #$ef | ||
+ | bne hold | ||
+ | jmp $fce2 ; C64 reset | ||
+ | </ |
base/displaying_a_picture_at_2000.txt · Last modified: 2015-04-17 04:31 by 127.0.0.1