X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/4d90f272baf43caf90927ca7e893518d526649e5..7d59dad969a6cd1e42958f4c805d1d373ee04713:/diag.asm diff --git a/diag.asm b/diag.asm index bc164a0..2c843eb 100644 --- a/diag.asm +++ b/diag.asm @@ -52,10 +52,11 @@ signon: putscreen: ; Wait for vblank -;.stat: ld a, [$FF41] ; STAT -; and $03 ; mode -; cp $01 ; VBLANK -;' jp nz, .stat +.stat: ld a, [$FF41] + ld [$FF51], a + and $03 ; mode + cp $01 ; VBLANK + jr nz, .stat ld hl, $8000 ; Copy two tiles. ld a, $AA