ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
register.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Fred Klaus *
3  * frednet@web.de *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 #ifndef CPC_REGISTER_H
21 #define CPC_REGISTER_H
22 
23 #include "compspec.h"
24 #include "types.h"
25 #include "z80.h"
26 
27 #include <cstring>
28 
29 namespace cpcx
30 {
36  class Register final
37  {
38  friend class Z80;
39 
40  public:
41  Register() {init();}
43 
44  void init() {std::memset(this, 0, sizeof(*this)); IX.w.l=IY.w.l=0xffff;AF.b.l=0x40;break_point = 0xffffffff;}
45 
46  private:
47  tREGPAIR AF, BC, DE, HL, PC, SP, AFx, BCx, DEx, HLx, IX, IY;
50  };
51 } // namespace cpcx
52 
53 #endif // CPC_REGISTER_H
tREGPAIR AFx
Definition: register.h:47
tDWORD trace
Definition: register.h:49
tUBYTE IFF1
Definition: register.h:48
tREGPAIR BCx
Definition: register.h:47
void init()
Definition: roland.cpp:97
tDWORD break_point
Definition: register.h:49
tUBYTE I
Definition: register.h:48
tUBYTE IFF2
Definition: register.h:48
tREGPAIR SP
Definition: register.h:47
tREGPAIR DE
Definition: register.h:47
tUBYTE Rb7
Definition: register.h:48
Namespace for all CPC components.
Definition: colours.cpp:22
tREGPAIR IY
Definition: register.h:47
tUBYTE EI_issued
Definition: register.h:48
tREGPAIR AF
Definition: register.h:47
tREGPAIR IX
Definition: register.h:47
tUBYTE R
Definition: register.h:48
Definition: z80.h:44
tUBYTE IM
Definition: register.h:48
tREGPAIR BC
Definition: register.h:47
tREGPAIR HLx
Definition: register.h:47
~Register() ROLAND_DEFAULT void init()
Definition: register.h:42
tUBYTE HALT
Definition: register.h:48
Definition: register.h:36
#define ROLAND_DEFAULT
Definition: compspec.h:46
uint8_t tUBYTE
Definition: types.h:74
Register()
Definition: register.h:41
tREGPAIR DEx
Definition: register.h:47
tREGPAIR HL
Definition: register.h:47
tREGPAIR PC
Definition: register.h:47
tUBYTE int_pending
Definition: register.h:48
int32_t tDWORD
Definition: types.h:52