emu: slightly better scren use in memview
[zymosis.git] / src / ZXEmuT / memview.h
blobc707299681599fa87a922789e75bcf219755f119
1 /***************************************************************************
3 * ZXEmuT -- ZX Spectrum Emulator with Tcl scripting
5 * Copyright (C) 2012-2022 Ketmar Dark <ketmar@ketmar.no-ip.org>
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 3 of the License ONLY.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **************************************************************************/
20 #ifndef ZXEMUT_MEMVIEW_H
21 #define ZXEMUT_MEMVIEW_H
23 #include <SDL.h>
24 #include "../libzymosis/zymosis.h"
27 extern void memviewInit (void);
28 extern void memviewSetActive (int st);
30 extern void memviewDraw (void);
31 extern int memviewKeyEvent (SDL_KeyboardEvent *key);
34 extern uint8_t mv_pagemap[256];
37 #define MV_MAX_TEXT_WIDTH (68)
40 // >0xffff: pages
41 enum {
42 MV_ENC_7BIT,
43 MV_ENC_866,
44 MV_ENC_1251,
46 MV_ENC_MAX,
49 enum {
50 MV_MODE_HEX,
51 MV_MODE_TEXT,
54 enum {
55 MV_CLRTEXT_MONO,
56 MV_CLRTEXT_RST,
60 extern uint32_t mv_staddr;
61 extern int mv_encoding;
62 extern int mv_viewmode;
63 extern int mv_textwidth;
64 extern int mv_colortext_mode;
65 extern int mv_colortext_ignore;
66 extern uint8_t mv_textcolor; // paper is ignored
69 #endif