OSDN Git Service

test senario updated.
authorastoria-d <astoria-d@mail.goo.ne.jp>
Thu, 5 Sep 2013 06:44:04 +0000 (15:44 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Thu, 5 Sep 2013 06:44:04 +0000 (15:44 +0900)
tools/test-image/sample1.asm

index b3d7129..e3b8780 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