ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
def.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005-2013 by Fred Klaus <development@fkweb.de> *
3  * *
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 ROLAND_DEF_H
21 #define ROLAND_DEF_H
22 
23 #include "types.h"
24 #include "config.h"
25 
26 #include <iostream>
27 #include <iomanip>
28 #include <stdint.h>
29 
31 static const uint32_t CYCLE_COUNT_INIT = 80000;
32 static const uint8_t TAPE_VOLUME = 32;
33 static const uint8_t MIN_SPEED_SETTING = 2;
34 static const uint8_t MAX_SPEED_SETTING = 32;
35 static const uint8_t DEF_SPEED_SETTING = 4;
36 static const uint16_t CPC_SCR_WIDTH = 1024;
37 static const uint16_t CPC_SCR_HEIGHT = 312;
38 static const uint16_t CPC_VISIBLE_SCR_WIDTH = 384;
39 static const uint16_t CPC_VISIBLE_SCR_HEIGHT = 270;
40 
41 using std::boolalpha;
42 
43 #define EOUT(a,b,c) std::cerr << std::setw(12) << std::setfill(' ') \
44  << std::left << a << "(E) " << std::setw(40) << std::setfill('.') \
45  << std::left << b << c << "\n";
46 
47 #ifdef VERBOSE
48  #define IOUT(a,b,c) std::cout << std::setw(12) << std::setfill(' ') \
49  << std::left << a << std::setw(40) << std::setfill('.') \
50  << std::left << b << c << "\n";
51 #else
52  #define IOUT(a,b,c)
53 #endif
54 
55 #ifdef DEBUG
56  #define DOUT(a,b,c)
57 #else
58  #define DOUT(a,b,c)
59  #define PREOUT
60 #endif
61 
62 
63 #endif // ROLAND_DEF_H
static const uint16_t CPC_SCR_WIDTH
max width
Definition: def.h:36
static const uint8_t TAPE_VOLUME
Definition: def.h:32
static const uint16_t CPC_SCR_HEIGHT
max height
Definition: def.h:37
static const uint8_t MAX_SPEED_SETTING
Definition: def.h:34
static const uint8_t MIN_SPEED_SETTING
Definition: def.h:33
static const uint16_t CPC_VISIBLE_SCR_HEIGHT
visible: 5+25+4 * 8 original is 272
Definition: def.h:39
static const uint16_t CPC_VISIBLE_SCR_WIDTH
visible: 4+40+4 * 8
Definition: def.h:38
static const uint8_t DEF_SPEED_SETTING
Definition: def.h:35
static const uint32_t CYCLE_COUNT_INIT
Number of CPU cycles per frame = 4MHz divided by 50Hz.
Definition: def.h:31