Compare commits

..

No commits in common. "f1d3f2f6b64f34528f5e158e795c8fb83d7a7c40" and "06f267b2081daf431a3363c829431e2cf55ab894" have entirely different histories.

2 changed files with 8 additions and 46 deletions

View File

@ -18,8 +18,8 @@ charset:
.byte %00000000 .byte %00000000
; tile 0x01 ; tile 0x01
.byte %11110000 ; row 0, color 0 .byte %11111111 ; row 0, color 0
.byte %11111111 ; row 0, color 1 .byte %00000000 ; row 0, color 1
.byte %10000001 ; row 1, color 0 .byte %10000001 ; row 1, color 0
.byte %00000000 ; row 1, color 1 .byte %00000000 ; row 1, color 1
.byte %10000001 ; row 2, color 0 .byte %10000001 ; row 2, color 0
@ -35,25 +35,4 @@ charset:
.byte %11111111 ; row 7, color 0 .byte %11111111 ; row 7, color 0
.byte %00000000 ; row 7, color 1 .byte %00000000 ; row 7, color 1
; tile 0x02
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
.byte %00000000
.byte %11111111
charset_end: charset_end:

View File

@ -29,13 +29,13 @@ start:
lda #$00 lda #$00
sta CGDATA sta CGDATA
; Color 2 - green ; Color 2 - blue
lda #$e0 lda #$e0
sta CGDATA sta CGDATA
lda #$03 lda #$03
sta CGDATA sta CGDATA
; Color 3 - blue ; Color 3 - green
lda #$00 lda #$00
sta CGDATA sta CGDATA
lda #$7c lda #$7c
@ -69,8 +69,7 @@ start:
ldx #(VRAM_BG1) ldx #(VRAM_BG1)
@loop: @loop:
stx VMADDL stx VMADDL
lda #$00 stz VMDATAL
sta VMDATAL
stz VMDATAH stz VMDATAH
inx inx
cpx #(VRAM_BG1 + 32 * 29) cpx #(VRAM_BG1 + 32 * 29)
@ -89,28 +88,12 @@ start:
lda #%00000001 lda #%00000001
sta TM sta TM
lda #$0f lda #$0f
sta INIDISP sta INIDISP
lda #$01
sta NMITIMEN
mainloop:
lda JOY1H
bit #%00000100 ; Down button
beq down_not_pressed
; write tile 2 to position (4, 8)
TILE_X2= 4
TILE_Y2= 8
ldx #(VRAM_BG1 + (TILE_Y2* 32) + TILE_X2)
stx VMADDL
lda #$02
sta VMDATAL
stz VMDATAH
down_not_pressed:
bra mainloop
busywait: busywait:
bra busywait bra busywait