X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=tools%2Ftest-image%2Fsample1.asm;h=e9cfa4804698786fef4ce024b5ddd6b7df51f1d8;hb=2502fb908466ed8e860683d7f24ab6aa0cfd71eb;hp=b3d7129971922eff6e0723634e44e621ac16a5e9;hpb=3d20dcf8d0439df15c068b49977fa87d00e98f98;p=motonesfpga%2Fmotonesfpga.git diff --git a/tools/test-image/sample1.asm b/tools/test-image/sample1.asm index b3d7129..e9cfa48 100644 --- a/tools/test-image/sample1.asm +++ b/tools/test-image/sample1.asm @@ -30,6 +30,8 @@ ;;dma test data. ldy #$00 + ldx #$41 + stx $00 ldx #$00 dma_set: ;;y pos @@ -37,7 +39,13 @@ dma_set: sta $0200, y iny ;;tile index - tya + lda $00 + cmp #$5b + bne inc_tile + lda #$41 + sta $00 +inc_tile: + inc $00 sta $0200, y iny ;;attribute @@ -46,7 +54,7 @@ dma_set: iny ;;x pos txa - adc #$06 + adc #$03 tax rol sta $0200, y @@ -67,9 +75,9 @@ copypal: dey bne copypal - lda #$21 + lda #$20 sta $2006 - lda #$c9 + lda #$ab sta $2006 ldx #$00 ldy #$0d @@ -82,13 +90,31 @@ copymap: dey bne copymap + ;;;vertical show test. + lda #$04 + sta $2000 + + lda #$20 + sta $2006 + lda #$cb + sta $2006 + ldx #$00 + ldy #$0d + + ;;load name table. +copymap2: + lda string, x + sta $2007 + inx + dey + bne copymap2 + + ;;scroll reg set. lda #$00 sta $2005 sta $2005 ;;show test msg. - lda #$08 - sta $2000 lda #$1e sta $2001 @@ -793,7 +819,7 @@ copymap: sta $2001 ;;;enable nmi - lda #$88 + lda #$80 sta $2000 ;;done...