OSDN Git Service

- test for ppu status read defect
authorastoria-d <astoria-d@mail.goo.ne.jp>
Mon, 9 Sep 2013 07:21:00 +0000 (16:21 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Mon, 9 Sep 2013 07:21:00 +0000 (16:21 +0900)
tools/test-image/sample1.asm

index ea85c4d..dc8e9a8 100644 (file)
@@ -136,31 +136,31 @@ copymap:
 ;;     dey\r
 ;;     bne     copymap2\r
 \r
-    ;;vram read test\r
-       lda     #$20\r
-       sta     $2006\r
-       lda     #$ab\r
-       sta     $2006\r
-\r
-    ldx #$0a\r
-    lda $2007\r
-load_vram:\r
-    lda $2007\r
-    dex\r
-    bne load_vram\r
-\r
-    ;;palette read test\r
-       lda     #$3f\r
-       sta     $2006\r
-       lda     #$00\r
-       sta     $2006\r
-\r
-    ldx #$0a\r
-    lda $2007\r
-load_plt:\r
-    lda $2007\r
-    dex\r
-    bne load_plt\r
+;;    ;;vram read test\r
+;;     lda     #$20\r
+;;     sta     $2006\r
+;;     lda     #$ab\r
+;;     sta     $2006\r
+;;\r
+;;    ldx #$0a\r
+;;    lda $2007\r
+;;load_vram:\r
+;;    lda $2007\r
+;;    dex\r
+;;    bne load_vram\r
+;;\r
+;;    ;;palette read test\r
+;;     lda     #$3f\r
+;;     sta     $2006\r
+;;     lda     #$00\r
+;;     sta     $2006\r
+;;\r
+;;    ldx #$0a\r
+;;    lda $2007\r
+;;load_plt:\r
+;;    lda $2007\r
+;;    dex\r
+;;    bne load_plt\r
 \r
     ;;scroll reg set.\r
        lda     #$00\r
@@ -875,6 +875,22 @@ load_plt:
        lda     #$80\r
        sta     $2000\r
 \r
+    ;;read ppu status reg while displaying\r
+    ;;vram read test\r
+    ldx #$0a\r
+l1:\r
+    nop\r
+    dex\r
+    bne l1\r
+\r
+    ldx #$0a\r
+read_status:\r
+    lda $2002\r
+    dex\r
+    bne read_status\r
+\r
+\r
+\r
     ;;done...\r
     ;;infinite loop.\r
 mainloop:\r