]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - diag.asm
Fix tileaddr bug. Make bus interface more explicit.
[fpgaboy.git] / diag.asm
index bc164a0202132a05d806f0cdc8a500fa6ad4357a..5d44cef29f6ba6c9654ef0dada74bf8868e4ae68 100644 (file)
--- a/diag.asm
+++ b/diag.asm
@@ -52,10 +52,12 @@ signon:
 
 putscreen:
        ; Wait for vblank
-;.stat:        ld a, [$FF41]   ; STAT
-;      and $03         ; mode
-;      cp $01          ; VBLANK
-;'     jp nz, .stat
+       ld c, $41
+.stat: ld a, [c]
+       ld [$FF51], a
+       and $03         ; mode
+       cp $01          ; VBLANK
+       jr nz, .stat
 
        ld hl, $8000    ; Copy two tiles.
        ld a, $AA
This page took 0.022236 seconds and 4 git commands to generate.