]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - diag.asm
Video RAM cut 1 -- on distributed ram
[fpgaboy.git] / diag.asm
index 8e09874baaf06cdb9b6472508f81a2cbff6a8dda..7f06de0ce42223f19f4dc2b67a74a5497592e8c8 100644 (file)
--- a/diag.asm
+++ b/diag.asm
@@ -32,6 +32,8 @@ main:
        
        ld hl, signon
        call puts
+
+       call putscreen
        
        ei
 
@@ -48,6 +50,25 @@ main:
 signon:
        db $0D,$0A,$1B,"[1mFPGABoy Diagnostic ROM",$1B,"[0m",$0D,$0A,0
 
+putscreen:
+       ld a, $FF               ; Copy two tiles.
+       ld hl, $8000
+       ld [hli], a
+       ld [hli], a
+       xor a
+       ld [hli], a
+       ld [hli], a
+       
+       ld hl, $9800
+.loop: ld a, $FF
+       ld [hli], a
+       xor a
+       ld [hli], a
+       ld a, h
+       cp $9C
+       jp nz,.loop
+       ret
+
 vbl:
        PUSH AF
        PUSH BC
This page took 0.021197 seconds and 4 git commands to generate.