added copyright line to top of source files next to license information
[cyclone68000.git] / Cyclone / app.h
CommitLineData
6003a768 1\r
619b1824 2// This file is part of the Cyclone 68000 Emulator\r
3\r
c41b9b97 4// Copyright (c) 2011 FinalDave (emudave (at) gmail.com)\r
5\r
619b1824 6// This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r
7// You can choose the license that has the most advantages for you.\r
8\r
9// SVN repository can be found at http://code.google.com/p/cyclone68000/\r
10\r
6003a768 11#include <stdio.h>\r
12#include <stdarg.h>\r
13#include <stdlib.h>\r
14#include <string.h>\r
15\r
16// Disa.c\r
17#include "../Pico/Disa.h"\r
18\r
19// Ea.cpp\r
20int EaCalc(int a,int mask,int ea,int size);\r
21int EaRead(int a,int v,int ea,int size,int top=0);\r
22int EaCanRead(int ea,int size);\r
23int EaWrite(int a,int v,int ea,int size,int top=0);\r
24int EaCanWrite(int ea);\r
25\r
26// Main.cpp\r
27extern int *CyJump; // Jump table\r
28extern int ms; // If non-zero, output in Microsoft ARMASM format\r
29extern char *Narm[4]; // Normal ARM Extensions for operand sizes 0,1,2\r
30extern char *Sarm[4]; // Sign-extend ARM Extensions for operand sizes 0,1,2\r
31extern int Cycles; // Current cycles for opcode\r
32extern int Amatch; // If one, try to match A68K timing\r
33extern int Accu; // Accuracy\r
34extern int Debug; // Debug info\r
35void ot(char *format, ...);\r
36void ltorg();\r
37void CheckInterrupt();\r
38int MemHandler(int type,int size);\r
39\r
40// OpAny.cpp\r
41int OpGetFlags(int subtract,int xbit);\r
42void OpUse(int op,int use);\r
43void OpFirst();\r
44void OpStart(int op);\r
45void OpEnd();\r
46int OpBase(int op);\r
47void OpAny(int op);\r
48\r
49//----------------------\r
50// OpArith.cpp\r
51int OpArith(int op);\r
52int OpLea(int op);\r
53int OpAddq(int op);\r
54int OpArithReg(int op);\r
55int OpMul(int op);\r
56int OpAbcd(int op);\r
57int OpAritha(int op);\r
58int OpAddx(int op);\r
59int OpCmpEor(int op);\r
60\r
61// OpBranch.cpp\r
62void OpPush32();\r
63void OpPushSr(int high);\r
64int OpTrap(int op);\r
65int OpLink(int op);\r
66int OpUnlk(int op);\r
67int Op4E70(int op);\r
68int OpJsr(int op);\r
69int OpBranch(int op);\r
70int OpDbra(int op);\r
71\r
72// OpLogic.cpp\r
73int OpBtstReg(int op);\r
74int OpBtstImm(int op);\r
75int OpNeg(int op);\r
76int OpSwap(int op);\r
77int OpTst(int op);\r
78int OpExt(int op);\r
79int OpSet(int op);\r
80int OpAsr(int op);\r
81int OpAsrEa(int op);\r
82\r
83// OpMove.cpp\r
84int OpMove(int op);\r
85int OpLea(int op);\r
86void OpFlagsToReg(int high);\r
87void OpRegToFlags(int high);\r
88int OpMoveSr(int op);\r
89int OpArithSr(int op);\r
90int OpPea(int op);\r
91int OpMovem(int op);\r
92int OpMoveq(int op);\r
93int OpMoveUsp(int op);\r
94int OpExg(int op);\r