-
Notifications
You must be signed in to change notification settings - Fork 1
/
psttkn68.h
68 lines (49 loc) · 1.59 KB
/
psttkn68.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
psttkn68.c - Part of macxx, a cross assembler family for various micro-processors
Copyright (C) 2008 David Shepperd
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/******************************************************************************
Change Log
03/18/2022 - 6800 CPU support added by Tim Giddens
using David Shepperd's work as a reference
******************************************************************************/
#ifndef _PSTTKN68_H_
#define _PSTTKN68_H_ 1
typedef enum {
ILL_NUM= -1,
UNDEF_NUM=0,
I_NUM=1,
D_NUM,
Z_NUM=D_NUM,
X_NUM,
E_NUM,
A_NUM=E_NUM,
S_NUM,
SPC_NUM,
ACC_NUM,
IMP_NUM=ACC_NUM,
MAX_NUM
} AModes;
#define I (1L << I_NUM)
#define D (1L << D_NUM)
#define Z (1L << Z_NUM)
#define X (1L << X_NUM)
#define E (1L << E_NUM)
#define A (1L << A_NUM)
#define S (1L << S_NUM)
#define SPC (1L << SPC_NUM)
#define ACC (1L << ACC_NUM)
#define IMP (1L << IMP_NUM)
#define DES (0x8000)
#define MOST68 (I|D|X|E)
#endif /* _PSTTKN68_H_ */