ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/emul_op.h
Revision: 1.1
Committed: 1999-10-03T14:16:26Z (25 years, 1 month ago) by cebix
Content type: text/plain
Branch: MAIN
Branch point for: cebix
Log Message:
Initial revision

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * emul_op.h - 68k opcodes for ROM patches
3     *
4     * Basilisk II (C) 1997-1999 Christian Bauer
5     *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20    
21     #ifndef EMUL_OP_H
22     #define EMUL_OP_H
23    
24     // 68k opcodes
25     const uint16 M68K_ILLEGAL = 0x4afc;
26     const uint16 M68K_NOP = 0x4e71;
27     const uint16 M68K_RTS = 0x4e75;
28     const uint16 M68K_RTD = 0x4e74;
29     const uint16 M68K_JMP = 0x4ef9;
30     const uint16 M68K_JMP_A0 = 0x4ed0;
31     const uint16 M68K_JSR = 0x4eb9;
32     const uint16 M68K_JSR_A0 = 0x4e90;
33    
34     // Extended opcodes
35     enum {
36     M68K_EXEC_RETURN = 0x7100, // Extended opcodes (illegal moveq form)
37     M68K_EMUL_BREAK,
38     M68K_EMUL_OP_SHUTDOWN,
39     M68K_EMUL_OP_RESET,
40     M68K_EMUL_OP_CLKNOMEM,
41     M68K_EMUL_OP_READ_XPRAM,
42     M68K_EMUL_OP_READ_XPRAM2,
43     M68K_EMUL_OP_PATCH_BOOT_GLOBS,
44     M68K_EMUL_OP_FIX_BOOTSTACK, // 0x7108
45     M68K_EMUL_OP_FIX_MEMSIZE,
46     M68K_EMUL_OP_INSTALL_DRIVERS,
47     M68K_EMUL_OP_SERD,
48     M68K_EMUL_OP_SONY_OPEN,
49     M68K_EMUL_OP_SONY_PRIME,
50     M68K_EMUL_OP_SONY_CONTROL,
51     M68K_EMUL_OP_SONY_STATUS,
52     M68K_EMUL_OP_DISK_OPEN, // 0x7110
53     M68K_EMUL_OP_DISK_PRIME,
54     M68K_EMUL_OP_DISK_CONTROL,
55     M68K_EMUL_OP_DISK_STATUS,
56     M68K_EMUL_OP_CDROM_OPEN,
57     M68K_EMUL_OP_CDROM_PRIME,
58     M68K_EMUL_OP_CDROM_CONTROL,
59     M68K_EMUL_OP_CDROM_STATUS,
60     M68K_EMUL_OP_VIDEO_OPEN, // 0x7118
61     M68K_EMUL_OP_VIDEO_CONTROL,
62     M68K_EMUL_OP_VIDEO_STATUS,
63     M68K_EMUL_OP_SERIAL_OPEN,
64     M68K_EMUL_OP_SERIAL_PRIME,
65     M68K_EMUL_OP_SERIAL_CONTROL,
66     M68K_EMUL_OP_SERIAL_STATUS,
67     M68K_EMUL_OP_SERIAL_CLOSE,
68     M68K_EMUL_OP_ETHER_OPEN, // 0x7120
69     M68K_EMUL_OP_ETHER_CONTROL,
70     M68K_EMUL_OP_ETHER_READ_PACKET,
71     M68K_EMUL_OP_ADBOP,
72     M68K_EMUL_OP_INSTIME,
73     M68K_EMUL_OP_RMVTIME,
74     M68K_EMUL_OP_PRIMETIME,
75     M68K_EMUL_OP_MICROSECONDS,
76     M68K_EMUL_OP_SCSI_DISPATCH, // 0x7128
77     M68K_EMUL_OP_MEMORY_DISPATCH,
78     M68K_EMUL_OP_IRQ,
79     M68K_EMUL_OP_PUT_SCRAP,
80     M68K_EMUL_OP_CHECKLOAD,
81     M68K_EMUL_OP_AUDIO,
82     M68K_EMUL_OP_MAX // highest number
83     };
84    
85     // Functions
86     extern void EmulOp(uint16 opcode, struct M68kRegisters *r); // Execute EMUL_OP opcode (called by 68k emulator or Line-F trap handler)
87    
88     #endif