ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/emul_op.h
Revision: 1.4
Committed: 1999-10-31T23:18:38Z (25 years ago) by cebix
Content type: text/plain
Branch: MAIN
CVS Tags: snapshot-22121999, release-0_8-1, snapshot-02111999
Changes since 1.3: +1 -2 lines
Log Message:
- removed MemoryDispatch() replacement; routine from ROM is now used if
  possible
- rom_patches.cpp: check for double PACK 4 resources; if only one is found,
  assume that the ROM requires an FPU and issue a warning if FPU emulation
  is turned off
- UAE CPU opcode routines no longer return the cycle count
- main_unix.cpp: pressing Ctrl-C dumps the UAE CPU state before entering mon
- sys_unix.cpp: under Linux, partition sizes are read with BLKGETSIZE instead
  of llseek()

File Contents

# Content
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_IRQ,
78 M68K_EMUL_OP_PUT_SCRAP,
79 M68K_EMUL_OP_CHECKLOAD,
80 M68K_EMUL_OP_AUDIO,
81 M68K_EMUL_OP_EXTFS_COMM,
82 M68K_EMUL_OP_EXTFS_HFS,
83 M68K_EMUL_OP_BLOCK_MOVE,
84 M68K_EMUL_OP_MAX // highest number
85 };
86
87 // Functions
88 extern void EmulOp(uint16 opcode, struct M68kRegisters *r); // Execute EMUL_OP opcode (called by 68k emulator or Line-F trap handler)
89
90 #endif