Created
April 20, 2018 12:36
-
-
Save nurpax/a74d4ebf111bffb25c72c98c44b6b29a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lda colora+0 | |
sta $d020 | |
lda colora+1 | |
sta $d021 | |
lda #$00 | |
sta $d020 | |
sta $d021 | |
// multicolor gfx mode | |
lda #$3b | |
sta $d011 | |
lda #$18 | |
sta $d016 | |
// screen ram ($0400), bitmap $2000 | |
//Bits #1-#3: In text mode, pointer to character memory (bits #11-#13), relative to VIC bank, memory address $DD00. Values: | |
// | |
//%000, 0: $0000-$07FF, 0-2047. | |
//%100, 4: $2000-$27FF, 8192-10239. | |
// Bits #4-#7: Pointer to screen memory (bits #10-#13), relative to VIC bank, memory address $DD00. Values: | |
// %0000, 0: $0000-$03FF, 0-1023. | |
// %0001, 1: $0400-$07FF, 1024-2047. | |
lda #$18 | |
sta $d018 | |
ldx #$00 | |
copyimage: | |
.for (var i = 0; i < 4; i++) { | |
lda colora+2+i*256, x | |
sta $0400+i*256, x | |
lda colorb+i*256, x | |
sta $d800+i*256, x | |
} | |
inx | |
bne copyimage | |
* = $2000 "kuva" | |
gfx: | |
.import source "testikuva.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment