emu: remember page editor cursor position in memview
[zymosis.git] / src / ZXEmuT / memview.h
blob1c789bb678cf4221cba9e76fe861799ccfa3fd6e
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 (67)
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,
55 extern uint32_t mv_staddr;
56 extern int mv_encoding;
57 extern int mv_viewmode;
58 extern int mv_textwidth;
59 extern uint8_t mv_textcolor; // paper is ignored
62 #endif