X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/20204e795d54fb0758a79f0abd5fb443c0178a54..722e486a9ea69af1fdad7d0d31490bb2845881ec:/rom.asm diff --git a/rom.asm b/rom.asm index 02f095b..c2b7598 100644 --- a/rom.asm +++ b/rom.asm @@ -150,6 +150,24 @@ insntest: 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 @@ -183,6 +201,10 @@ insntest: 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: