include/
[external/binutils.git] / gas / testsuite / gas / z80 / branch.s
1         .text
2         .org 0
3 ;;; branch instructions
4 2:      
5         jp 0x8405
6         jp c,0x8405
7         jp nc,0x8405
8         jp z,0x8405
9         jp nz,0x8405
10         jp pe,0x8405
11         jp po,0x8405
12         jp m,0x8405
13         jp p,0x8405
14
15         jr 2b
16         jr c,2b
17         jr nc,2b
18         jr z,2b
19         jr nz,2b
20
21         jp (hl)
22         jp (ix)
23         jp (iy)
24
25         call 0x8405
26         call c,0x8405
27         call nc,0x8405
28         call z,0x8405
29         call nz,0x8405
30         call pe,0x8405
31         call po,0x8405
32         call m,0x8405
33         call p,0x8405
34         
35         djnz 2b
36
37         ret
38         ret c
39         ret nc
40         ret z
41         ret nz
42         ret pe
43         ret po
44         ret m
45         ret p
46
47         reti
48         retn
49
50         rst 0h
51         rst 8h
52         rst 10h
53         rst 18h
54         rst 20h
55         rst 28h
56         rst 30h
57         rst 38h