X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fz80%2Fbranch.s;fp=gas%2Ftestsuite%2Fgas%2Fz80%2Fbranch.s;h=e240934b846995ba10b0e1deb03ae75c29c69692;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/gas/testsuite/gas/z80/branch.s b/gas/testsuite/gas/z80/branch.s new file mode 100644 index 0000000..e240934 --- /dev/null +++ b/gas/testsuite/gas/z80/branch.s @@ -0,0 +1,57 @@ + .text + .org 0 +;;; branch instructions +2: + jp 0x8405 + jp c,0x8405 + jp nc,0x8405 + jp z,0x8405 + jp nz,0x8405 + jp pe,0x8405 + jp po,0x8405 + jp m,0x8405 + jp p,0x8405 + + jr 2b + jr c,2b + jr nc,2b + jr z,2b + jr nz,2b + + jp (hl) + jp (ix) + jp (iy) + + call 0x8405 + call c,0x8405 + call nc,0x8405 + call z,0x8405 + call nz,0x8405 + call pe,0x8405 + call po,0x8405 + call m,0x8405 + call p,0x8405 + + djnz 2b + + ret + ret c + ret nc + ret z + ret nz + ret pe + ret po + ret m + ret p + + reti + retn + + rst 0h + rst 8h + rst 10h + rst 18h + rst 20h + rst 28h + rst 30h + rst 38h