]> Joshua Wise's Git repositories - fpgaboy.git/blobdiff - rom.asm
JR and JRCC
[fpgaboy.git] / rom.asm
diff --git a/rom.asm b/rom.asm
index 02f095b50e00470b469615b586435f55b34de341..c2b759883eac10bbd2b231f217cc8df3ecafdce6 100644 (file)
--- a/rom.asm
+++ b/rom.asm
@@ -150,6 +150,24 @@ insntest:
        ld hl, .xorhlfail
        jp nz, .fail
        
        ld hl, .xorhlfail
        jp nz, .fail
        
+       ; Test JP (HL)
+       ld hl, .jphl
+       jp [hl]
+       ld hl, .jphlfail
+       jp .fail
+       rst $00
+.jphl:
+
+       ; Test JR
+       ld a, $FF
+       ld b, $00
+       cp b
+       jr nz,.jr
+       ld hl, .jrfail
+       jp .fail
+       rst $00
+.jr:
+       
        ; Test CP.
        ld hl, .cpfail
        ld a, $10
        ; Test CP.
        ld hl, .cpfail
        ld a, $10
@@ -183,6 +201,10 @@ insntest:
        db $FF
 .xorhlfail:
        db "XOR [HL] test failed.",$0D,$0A,0
        db $FF
 .xorhlfail:
        db "XOR [HL] test failed.",$0D,$0A,0
+.jphlfail:
+       db "JP [HL] test failed.",$0D,$0A,0
+.jrfail:
+       db "JR test failed.",$0D,$0A,0
 .cpfail:
        db "CP test failed.",$0D,$0A,0
 .cplfail:
 .cpfail:
        db "CP test failed.",$0D,$0A,0
 .cplfail:
This page took 0.024718 seconds and 4 git commands to generate.