]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - diag.asm
Framebuffer poking
[fpgaboy.git] / diag.asm
index e3afaa42e685f0dfbbb131de8069ca677b93913d..80164004fea23ecde8dc9fcdd67c005c506978de 100644 (file)
--- a/diag.asm
+++ b/diag.asm
@@ -24,7 +24,7 @@ main:
        ld a, $04       ;start timer, 4.096KHz
        ld c, $07
        ld [c], a
-
+       
        ld hl, $DF81
        xor a
        ld [hli], a
@@ -49,6 +49,27 @@ signon:
        db $0D,$0A,$1B,"[1mFPGABoy Diagnostic ROM",$1B,"[0m",$0D,$0A,0
 
 vbl:
+       PUSH AF
+       PUSH BC
+       PUSH DE
+       PUSH HL
+       
+       xor a
+       ld c, $0F
+       ld [c], a
+       
+       ld c, $42       ; SCY
+       ld a, [c]
+       inc a
+       ld [c], a
+
+       POP HL
+       POP DE
+       POP BC
+       POP AF
+
+       RETI
+
 lcdc:
        PUSH AF
        PUSH BC
@@ -72,6 +93,11 @@ tmro:
        ld c, $0F
        ld [c], a
        
+       ld c, $45       ; LYC
+       ld a, [c]
+       inc a
+       ld [c], a
+       
        ld hl, $DF82
        ld a, [hld]
        cp 0
This page took 0.023424 seconds and 4 git commands to generate.