Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
spectrum.h
Go to the documentation of this file.
1 /* Learning material to get to know ZX Spectrum (I never had that machine ...)
2  by trying to write an emulator :-O
3  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
4  Copyright (C)2017,2021 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
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 #ifndef XEMU_ZXSPECT_SPECTRUM_H_INCLUDED
21 #define XEMU_ZXSPECT_SPECTRUM_H_INCLUDED
22 
23 #define ROM_NAME "#zxspect48.rom"
24 #define SCREEN_FORMAT SDL_PIXELFORMAT_ARGB8888
25 #define USE_LOCKED_TEXTURE 1
26 #define RENDER_SCALE_QUALITY 1
27 
28 #if 0
29 #define SIDE_BORDER_WIDTH 48
30 #define SCREEN_WIDTH (256 + SIDE_BORDER_WIDTH * 2)
31 #define TOP_BORDER_HEIGHT 48
32 #define BOTTOM_BORDER_HEIGHT 56
33 #define VSYNC_HEIGHT 16
34 #define SCREEN_HEIGHT (TOP_BORDER_HEIGHT + 192 + BOTTOM_BORDER_HEIGHT)
35 #define TSTATES_PER_FRAME 69888
36 #define CPU_CLOCK 3500000
37 #define USEC_PER_FRAME 19968
38 #endif
39 
40 #define SCREEN_WIDTH (256 + 48 * 2)
41 #define SCREEN_HEIGHT (48 + 192 + 56)
42 
43 #endif