]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - rom.asm
Poke the LEDs. YOUR MOM WAS TOO WIDE
[fpgaboy.git] / rom.asm
diff --git a/rom.asm b/rom.asm
index 93f8524713edd8bb709ba7496a57f76d39295fcb..7994d3ea2f7103a0a4e4cde108642f7537ad52b0 100644 (file)
--- a/rom.asm
+++ b/rom.asm
@@ -4,7 +4,7 @@ main:
        ld c, $51       ; Note that we are alive.
        ld a, $FF
        ld [c],a
-
+       
        ld sp, $DFFF
 
        ld hl, signon
@@ -105,13 +105,15 @@ waitsw:
        call puts
        
        ld c, $07
-       ld a, $07       ;start timer, 4.096KHz
+       ld a, $04       ;start timer, 4.096KHz
        ld [c], a
        
        ld c, $51
        ld a, $00
        ld [c],a
        
+       ld e, a
+       
 .loop1:
        push bc
        call testa
@@ -138,13 +140,13 @@ testa:
        ret z
        xor a
        ld [c], a
-       ld hl, $D000
-       ld c, [hl]
-       inc bc
-       ld [hl], c
-       ld a, c
-       ld c, $50
+       ld a, $41
+       call putc
+       ld a, 1
+       add e
+       ld c, $51
        ld [c], a
+       ld e, a
        ret
 
 ; Core instruction basic acceptance tests.
@@ -258,10 +260,12 @@ insntest:
 putc:
        ld b, 0
        ld c, $50
+       push af
 .waitport:
        ld a,[c]
        cp b
        jr nz,.waitport
+       pop af
        ld [c],a
        ret
 
@@ -269,6 +273,8 @@ puts:
        ld a, [hli]
        ld b, $00
        cp b
-       ret z
+       jr z, .done
        call putc
        jr puts
+.done:
+       ret
This page took 0.025423 seconds and 4 git commands to generate.