]> git.sur5r.net Git - cc65/blob - src/da65/handler.h
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / da65 / handler.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                                 handler.h                                 */
4 /*                                                                           */
5 /*               Opcode handler functions for the disassembler               */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 2000-2011, Ullrich von Bassewitz                                      */
10 /*                Roemerstrasse 52                                           */
11 /*                D-70794 Filderstadt                                        */
12 /* EMail:         uz@cc65.org                                                */
13 /*                                                                           */
14 /*                                                                           */
15 /* This software is provided 'as-is', without any expressed or implied       */
16 /* warranty.  In no event will the authors be held liable for any damages    */
17 /* arising from the use of this software.                                    */
18 /*                                                                           */
19 /* Permission is granted to anyone to use this software for any purpose,     */
20 /* including commercial applications, and to alter it and redistribute it    */
21 /* freely, subject to the following restrictions:                            */
22 /*                                                                           */
23 /* 1. The origin of this software must not be misrepresented; you must not   */
24 /*    claim that you wrote the original software. If you use this software   */
25 /*    in a product, an acknowledgment in the product documentation would be  */
26 /*    appreciated but is not required.                                       */
27 /* 2. Altered source versions must be plainly marked as such, and must not   */
28 /*    be misrepresented as being the original software.                      */
29 /* 3. This notice may not be removed or altered from any source              */
30 /*    distribution.                                                          */
31 /*                                                                           */
32 /*****************************************************************************/
33
34
35
36 #ifndef HANDLER_H
37 #define HANDLER_H
38
39
40
41 /* common */
42 #include "attrib.h"
43
44 /* da65 */
45 #include "opctable.h"
46
47
48
49 /*****************************************************************************/
50 /*                                   Code                                    */
51 /*****************************************************************************/
52
53
54
55 /* Generic handlers */
56 void OH_Illegal (const OpcDesc* D attribute ((unused)));
57 void OH_Accumulator (const OpcDesc*);
58 void OH_Implicit (const OpcDesc*);
59 void OH_Immediate (const OpcDesc*);
60 void OH_Direct (const OpcDesc*);
61 void OH_DirectX (const OpcDesc*);
62 void OH_DirectY (const OpcDesc*);
63 void OH_Absolute (const OpcDesc*);
64 void OH_AbsoluteX (const OpcDesc*);
65 void OH_AbsoluteY (const OpcDesc*);
66 void OH_AbsoluteLong (const OpcDesc*);
67 void OH_AbsoluteLongX (const OpcDesc*);
68 void OH_Relative (const OpcDesc*);
69 void OH_RelativeLong (const OpcDesc*);
70 void OH_DirectIndirect (const OpcDesc*);
71 void OH_DirectIndirectY (const OpcDesc*);
72 void OH_DirectXIndirect (const OpcDesc*);
73 void OH_AbsoluteIndirect (const OpcDesc*);
74
75 void OH_BitBranch (const OpcDesc*);
76
77 void OH_ImmediateDirect (const OpcDesc*);
78 void OH_ImmediateDirectX (const OpcDesc*);
79 void OH_ImmediateAbsolute (const OpcDesc*);
80 void OH_ImmediateAbsoluteX (const OpcDesc*);
81
82 void OH_StackRelative (const OpcDesc*);
83 void OH_DirectIndirectLongX (const OpcDesc*);
84 void OH_StackRelativeIndirectY (const OpcDesc*);
85 void OH_DirectIndirectLong (const OpcDesc*);
86 void OH_DirectIndirectLongY (const OpcDesc*);
87 void OH_BlockMove (const OpcDesc*);
88 void OH_AbsoluteXIndirect (const OpcDesc*);
89
90 /* Mitsubishi 740 */
91 void OH_DirectImmediate (const OpcDesc*);
92 void OH_ZeroPageBit (const OpcDesc*);
93 void OH_AccumulatorBit (const OpcDesc*);
94 void OH_AccumulatorBitBranch (const OpcDesc*);
95 void OH_JmpDirectIndirect (const OpcDesc* D);
96 void OH_SpecialPage (const OpcDesc*);
97                     
98 /* Handlers for special instructions */
99 void OH_Rts (const OpcDesc*);
100 void OH_JmpAbsolute (const OpcDesc*);
101 void OH_JmpAbsoluteIndirect (const OpcDesc* D);
102
103
104
105 /* End of handler.h */
106 #endif
107
108
109