Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
enterprise128.h
Go to the documentation of this file.
1 /* Minimalistic Enterprise-128 emulator with focus on "exotic" hardware
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2015-2016,2020-2021 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
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 Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef XEMU_EP128_MAIN_H_INCLUDED
20 #define XEMU_EP128_MAIN_H_INCLUDED
21 
22 #define SCREEN_WIDTH 736
23 #define SCREEN_HEIGHT 288
24 #define SCREEN_FORMAT SDL_PIXELFORMAT_ARGB8888
25 #define USE_LOCKED_TEXTURE 1
26 #define RENDER_SCALE_QUALITY 0
27 
28 #define DEFAULT_ROM_FN "#exos.rom"
29 #define SDCARD_IMG_FN "@sdcard.img"
30 #define PRINT_OUT_FN "@print.out"
31 #define SRAM_BACKUP_FILE_FORMAT "@sram-%02X.seg"
32 
33 // In MHz
34 #define DEFAULT_CPU_CLOCK 4
35 
36 // Used at various places to name the emulator (in prompts, etc)
37 #define XEP128_NAME "XEMU::Xep128"
38 
39 extern void emu_one_frame ( int rasters, int frameskip);
40 extern int set_cpu_clock ( int hz );
41 
42 extern int set_cpu_clock ( int hz );
43 extern int set_cpu_clock_with_osd ( int hz );
44 
45 extern int paused;
47 extern time_t unix_time;
48 
49 #define CONFIG_USE_LODEPNG
50 #define CONFIG_EXDOS_SUPPORT
51 #ifdef XEMU_HAS_SOCKET_API
52 # define CONFIG_EPNET_SUPPORT
53 # define EPNET_IO_BASE 0x90
54 #endif
55 
56 #define ERRSTR() strerror(errno)
57 
58 #endif
set_cpu_clock_with_osd
int set_cpu_clock_with_osd(int hz)
Definition: enterprise128.c:102
unix_time
time_t unix_time
Definition: enterprise128.c:59
set_cpu_clock
int set_cpu_clock(int hz)
Definition: enterprise128.c:91
emu_one_frame
void emu_one_frame(int rasters, int frameskip)
Definition: enterprise128.c:114
paused
int paused
Definition: enterprise128.c:53
register_screenshot_request
int register_screenshot_request
Definition: enterprise128.c:54
frameskip
int frameskip
Definition: vic3.c:75