OSDN Git Service

- vram address increment size 32 is supported.
[motonesfpga/motonesfpga.git] / tools / test-image / sample1.asm
index b3d7129..e9cfa48 100644 (file)
@@ -30,6 +30,8 @@
 \r
     ;;dma test data.\r
     ldy #$00\r
+    ldx #$41\r
+    stx $00\r
     ldx #$00\r
 dma_set:\r
     ;;y pos\r
@@ -37,7 +39,13 @@ dma_set:
     sta $0200, y\r
     iny\r
     ;;tile index\r
-    tya\r
+    lda $00\r
+    cmp #$5b\r
+    bne inc_tile\r
+    lda #$41\r
+    sta $00\r
+inc_tile:\r
+    inc $00\r
     sta $0200, y\r
     iny\r
     ;;attribute\r
@@ -46,7 +54,7 @@ dma_set:
     iny\r
     ;;x pos\r
     txa\r
-    adc #$06\r
+    adc #$03\r
     tax\r
     rol\r
     sta $0200, y\r
@@ -67,9 +75,9 @@ copypal:
        dey\r
        bne     copypal\r
 \r
-       lda     #$21\r
+       lda     #$20\r
        sta     $2006\r
-       lda     #$c9\r
+       lda     #$ab\r
        sta     $2006\r
        ldx     #$00\r
        ldy     #$0d\r
@@ -82,13 +90,31 @@ copymap:
        dey\r
        bne     copymap\r
 \r
+    ;;;vertical show test.\r
+       lda     #$04\r
+       sta     $2000\r
+\r
+       lda     #$20\r
+       sta     $2006\r
+       lda     #$cb\r
+       sta     $2006\r
+       ldx     #$00\r
+       ldy     #$0d\r
+\r
+    ;;load name table.\r
+copymap2:\r
+       lda     string, x\r
+       sta     $2007\r
+       inx\r
+       dey\r
+       bne     copymap2\r
+\r
+    ;;scroll reg set.\r
        lda     #$00\r
        sta     $2005\r
        sta     $2005\r
 \r
     ;;show test msg.\r
-       lda     #$08\r
-       sta     $2000\r
        lda     #$1e\r
        sta     $2001\r
 \r
@@ -793,7 +819,7 @@ copymap:
        sta     $2001\r
 \r
     ;;;enable nmi\r
-       lda     #$88\r
+       lda     #$80\r
        sta     $2000\r
 \r
     ;;done...\r