1 #ifndef _DJGPP_INCLUDE_FOLLOWOP_H
2 #define _DJGPP_INCLUDE_FOLLOWOP_H
3 
4 // Declaration for functions used to know the following instruction
5 
6 #include "config.h"
7 #include "cleantyp.h"
8 #include "optable.h"
9 
10 #if defined(KERNEL_DS)
11 
12 #include "h6280.h"
13 
14 #else
15 
16 #include "m6502.h"
17 
18 #endif
19 
20 #include "pce.h"
21 
22 UInt16 follow_straight(UInt16);
23 // for most op, IP just go on
24 
25 UInt16 follow_BBRi(UInt16 where);
26 // for BBRi op
27 
28 UInt16 follow_BCC(UInt16 where);
29 // for BCC op
30 
31 UInt16 follow_BBSi(UInt16 where);
32 // for BBSi op
33 
34 UInt16 follow_BCS(UInt16 where);
35 // for BCS op
36 
37 UInt16 follow_BEQ(UInt16 where);
38 // for BEQ op
39 
40 UInt16 follow_BNE(UInt16 where);
41 // for BNE op
42 
43 UInt16 follow_BMI(UInt16 where);
44 // for BMI op
45 
46 UInt16 follow_BPL(UInt16 where);
47 // for BPL op
48 
49 UInt16 follow_BRA(UInt16 where);
50 // for BRA op
51 
52 UInt16 follow_BSR(UInt16 where);
53 // for BSR op
54 
55 UInt16 follow_BVS(UInt16 where);
56 // for BVS op
57 
58 UInt16 follow_BVC(UInt16 where);
59 // for BVC op
60 
61 UInt16 follow_JMPabs(UInt16 where);
62 // for JMP absolute
63 
64 UInt16 follow_JMPindir(UInt16 where);
65 // for JMP indirect
66 
67 UInt16 follow_JMPindirX(UInt16 where);
68 // for JMP indirect with X
69 
70 UInt16 follow_JSR(UInt16 where);
71 // for JSR op
72 
73 UInt16 follow_RTI(UInt16 where);
74 // for RTI op
75 
76 UInt16 follow_RTS(UInt16 where);
77 // for RTS op
78 
79 #endif
80