emu: "memview" console command is able to set some memview options
[zymosis.git] / src / ZXEmuT / memview.h
blob51320d30691f31dc2781bc13e821582261edb788
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 #define MV_MAX_TEXT_WIDTH (67)
37 // >0xffff: pages
38 enum {
39 MV_ENC_7BIT,
40 MV_ENC_866,
41 MV_ENC_1251,
43 MV_ENC_MAX,
46 enum {
47 MV_MODE_HEX,
48 MV_MODE_TEXT,
52 extern uint32_t mv_staddr;
53 extern int mv_encoding;
54 extern int mv_viewmode;
55 extern int mv_textwidth;
58 #endif