add start of flat24 support
[fw/sdcc] / sim / ucsim / s51.src / uc390cl.h
1 /*
2  * Simulator of microcontrollers (uc390cl.h)
3  *
4  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
5  * 
6  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7  *
8  * uc390cl.h - implemented by Karl Bongers, karl@turbobit.com
9  */
10
11 /* This file is part of microcontroller simulator: ucsim.
12
13 UCSIM is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17
18 UCSIM is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with UCSIM; see the file COPYING.  If not, write to the Free
25 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
26 02111-1307, USA. */
27 /*@1@*/
28
29 #ifndef UC390CL_HEADER
30 #define UC390CL_HEADER
31
32 #include "ddconfig.h"
33
34 #include "uc52cl.h"
35
36 class t_uc390: public t_uc52
37 {
38 public:
39   t_uc390(int Itype, int Itech, class cl_sim *asim);
40   int flat24_flag; /* true if flat24 mode code: ((ACON:9Dh & 3) == 0x2) */
41
42 /* mods for dual-dptr */
43 virtual int inst_inc_addr(uchar code);
44 virtual int inst_inc_dptr(uchar code);
45 virtual int inst_jmp_$a_dptr(uchar code);
46 virtual int inst_mov_dptr_$data(uchar code);
47 virtual int inst_movc_a_$a_dptr(uchar code);
48 virtual int inst_movx_a_$dptr(uchar code);
49 virtual int inst_movx_$dptr_a(uchar code);
50
51 /* mods for flat24 */
52 virtual int inst_ajmp_addr(uchar code);
53 virtual int inst_ljmp(uchar code);
54 virtual int inst_acall_addr(uchar code);
55 virtual int inst_lcall(uchar code, uint addr);
56 virtual int inst_ret(uchar code);
57 virtual int inst_reti(uchar code);
58
59 /* mods for disassembly of flat24 */
60 virtual struct dis_entry *dis_tbl(void);
61 virtual char * disass(t_addr addr, char *sep);
62
63 };
64
65 #endif
66 /* End of s51.src/uc390cl.h */