Gwenhael Le Moine
|
1a18c8a201
|
define in its place
|
2024-06-05 14:20:39 +02:00 |
|
Gwenhael Le Moine
|
d2dcfa167e
|
simplify saturn.keybuf
|
2024-06-05 14:08:10 +02:00 |
|
Gwenhael Le Moine
|
aeb3822b86
|
small optimization in main loop
|
2024-06-05 14:07:47 +02:00 |
|
Gwenhael Le Moine
|
83296ffbe9
|
[ui_sdl] named fields in structs
|
2024-05-23 16:50:58 +02:00 |
|
Gwenhael Le Moine
|
1729df310a
|
[ui_sdl] named fields in some structs + ...
|
2024-05-23 16:34:58 +02:00 |
|
Gwenhael Le Moine
|
7ea781c428
|
same treatment to ui_sdl
|
2024-05-23 16:20:57 +02:00 |
|
Gwenhael Le Moine
|
465761bc87
|
[ui_x11.c] less functions
|
2024-05-23 15:33:29 +02:00 |
|
Gwenhael Le Moine
|
8a4da4d1f6
|
got tired of CamelCase
|
2024-05-23 15:12:19 +02:00 |
|
Gwenhael Le Moine
|
bb32b545e1
|
inline save_* single-use functions
|
2024-05-23 14:20:46 +02:00 |
|
Gwenhael Le Moine
|
be5412a622
|
depuplication
|
2024-05-23 14:11:14 +02:00 |
|
Gwenhael Le Moine
|
2c284f86c8
|
remove indirection functions
|
2024-05-23 14:07:38 +02:00 |
|
Gwenhael Le Moine
|
a2fb56e1a7
|
more static functiosn in ui_x11.c + small stuff
|
2024-05-23 13:50:42 +02:00 |
|
Gwenhael Le Moine
|
84899412ad
|
enable more warnings by default, make it compile cleanly with them
|
2024-05-20 19:03:39 +02:00 |
|
Gwenhael Le Moine
|
f395d805ff
|
[serial] detriplicate (!) ttybuf initialization
|
2024-05-20 18:26:58 +02:00 |
|
Gwenhael Le Moine
|
3090b38a46
|
named struct fields initialization
|
2024-05-17 20:32:21 +02:00 |
|
Gwenhael Le Moine
|
11df5e2370
|
naming and bool
|
2024-05-17 20:32:12 +02:00 |
|
Gwenhael Le Moine
|
777e4100fb
|
mostly trying to optimize and clarify ui_x11
|
2024-05-17 16:44:07 +02:00 |
|
Gwenhael Le Moine
|
ca38afdfa8
|
[ui_x11.c] formatting
|
2024-05-16 16:41:25 +02:00 |
|
Gwenhael Le Moine
|
976ec1f1cb
|
[ui_x11.c] draw keypad in one loop
|
2024-05-16 16:34:50 +02:00 |
|
Gwenhael Le Moine
|
45f37f9d9e
|
[ui_x11.c] deduplicate DrawButton
|
2024-05-16 16:34:16 +02:00 |
|
Gwenhael Le Moine
|
fd0a7709d5
|
[ui_x11.c] use bool
|
2024-05-16 16:33:30 +02:00 |
|
Gwenhael Le Moine
|
11906a289b
|
verbose announce UI type
|
2024-05-16 16:32:23 +02:00 |
|
Gwenhael Le Moine
|
6088f5b751
|
Harmonize draw_row in all 3 ui_*.c
|
2024-05-16 16:01:52 +02:00 |
|
Gwenhael Le Moine
|
66a60953c1
|
[ui_{x11,sdl}.c] optimizing setting lcd_nibbles_buffer + fiddling
|
2024-05-16 15:47:32 +02:00 |
|
Gwenhael Le Moine
|
106f0fc200
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2024-04-30 07:59:40 +02:00 |
|
Gwenhael Le Moine
|
50b14b4d68
|
fix ncurses include following latest Slackware-current update
|
2024-04-30 07:59:11 +02:00 |
|
Gwenhael Le Moine
|
c1ac07d513
|
config.useDebugger
|
2024-04-25 14:17:12 +02:00 |
|
Gwenhael Le Moine
|
247d0cc133
|
exit only from main.c; inline emulate into main
|
2024-04-24 16:06:24 +02:00 |
|
Gwenhael Le Moine
|
ac6dcb93e7
|
naming config
|
2024-04-18 15:47:23 +02:00 |
|
Gwenhael Le Moine
|
56d1f70f95
|
store config in a struct
|
2024-04-14 11:41:46 +02:00 |
|
Gwenhael Le Moine
|
9ffaefed95
|
Don't exit if configDir doesn't exist, fix #19
|
2024-04-11 21:14:15 +02:00 |
|
Gwenhael Le Moine
|
e7e31f72cc
|
merge init_emulator into start_emulator
|
2024-04-11 13:47:33 +02:00 |
|
Gwenhael Le Moine
|
f8ffd47b46
|
positive condition
|
2024-04-11 13:47:20 +02:00 |
|
Gwenhael Le Moine
|
f0be2043b9
|
name function by what it's doing
|
2024-04-11 13:46:16 +02:00 |
|
Gwenhael Le Moine
|
c31b6c083d
|
move declarations out of emulator.h
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
2024-04-11 09:55:24 +02:00 |
|
Gwenhael Le Moine
|
645abec1d2
|
saturn.rstk represents hardware so RSTK
|
2024-04-10 16:44:51 +02:00 |
|
Gwenhael Le Moine
|
a4c61fae7b
|
cleaning, show contrast value in TUI
|
2024-04-10 16:24:41 +02:00 |
|
Gwenhael Le Moine
|
1c89a1083b
|
simplify starting emulator and UI
|
2024-04-10 14:59:50 +02:00 |
|
Gwenhael Le Moine
|
ebf8ded567
|
Revert "make init_serial() an emulator_inner function"
This reverts commit 6557009df9 .
|
2024-04-10 14:46:28 +02:00 |
|
Gwenhael Le Moine
|
6557009df9
|
make init_serial() an emulator_inner function
|
2024-04-10 14:34:45 +02:00 |
|
Gwenhael Le Moine
|
d4a3bae009
|
special header file for debugger: emulator_for_debugger.h
|
2024-04-10 14:21:10 +02:00 |
|
Gwenhael Le Moine
|
84328c19ae
|
merge emu_actions.c into emu_emulate.c
|
2024-04-10 13:15:12 +02:00 |
|
Gwenhael Le Moine
|
f2d9fc67b4
|
externalize emulator's keyboard functions in their own files
|
2024-04-10 12:54:21 +02:00 |
|
Gwenhael Le Moine
|
294d140082
|
make pretty-code
|
2024-04-10 12:16:26 +02:00 |
|
Gwenhael Le Moine
|
f0720ea99c
|
naming: s/NR_/NB_/g
|
2024-04-10 11:05:01 +02:00 |
|
Gwenhael Le Moine
|
12aadf3e9a
|
document 15625
|
2024-04-10 11:01:13 +02:00 |
|
Gwenhael Le Moine
|
18bc490153
|
use bool in tools
|
2024-04-10 11:00:34 +02:00 |
|
Gwenhael Le Moine
|
7fbbd3d89c
|
s/got_alarm/sigalarm_triggered/g
|
2024-04-10 09:34:57 +02:00 |
|
Gwenhael Le Moine
|
dd51ede578
|
refactor ui_init_LCD() use
|
2024-04-10 08:27:26 +02:00 |
|
Gwenhael Le Moine
|
ae866703e1
|
harden normalize_config_dir
|
2024-04-09 23:17:25 +02:00 |
|
Gwenhael Le Moine
|
64c926c02a
|
more bool variables; split opt_gx and opt_49 (unused)
|
2024-04-09 23:07:26 +02:00 |
|
Gwenhael Le Moine
|
a7ce955307
|
bool adj_time_pending
|
2024-04-09 20:55:19 +02:00 |
|
Gwenhael Le Moine
|
c017601fba
|
rece_instr is not used
|
2024-04-09 20:54:59 +02:00 |
|
Gwenhael Le Moine
|
9cb53e8c92
|
correctly named include guard
|
2024-04-09 19:50:40 +02:00 |
|
Gwenhael Le Moine
|
98165ee6a9
|
use more bool
|
2024-04-09 19:50:29 +02:00 |
|
Gwenhael Le Moine
|
437315deef
|
comment out unused parts of device_t
|
2024-04-09 19:49:26 +02:00 |
|
Gwenhael Le Moine
|
82f6e7a842
|
make pretty-code
|
2024-04-09 19:47:49 +02:00 |
|
Gwenhael Le Moine
|
10bae56104
|
convert many booleans to actual bool
|
2024-04-09 16:45:56 +02:00 |
|
Gwenhael Le Moine
|
f2d2c32437
|
[ui_text] remove draw_nibble(); plug ui_refresh_LCD()
|
2024-04-09 15:51:34 +02:00 |
|
Gwenhael Le Moine
|
35f3cd2098
|
re-arrange code
|
2024-04-09 15:51:18 +02:00 |
|
Gwenhael Le Moine
|
923bcabc5c
|
set refresh to 64Hz as the real HP 48
|
2024-04-09 14:32:45 +02:00 |
|
Gwenhael Le Moine
|
9b18c615cc
|
organize and comment main()
|
2024-04-09 14:26:18 +02:00 |
|
Gwenhael Le Moine
|
98dec7387b
|
use a bool
|
2024-04-09 14:23:10 +02:00 |
|
Gwenhael Le Moine
|
12f2c44904
|
got_alarm is now a bool
|
2024-04-09 14:22:47 +02:00 |
|
Gwenhael Le Moine
|
14a7d63fb5
|
+\n
|
2024-04-03 17:31:19 +02:00 |
|
Gwenhael Le Moine
|
7b4e9893e2
|
minor code fiddling
|
2024-04-03 15:51:43 +02:00 |
|
Gwenhael Le Moine
|
11b5b8ea66
|
conf_tab_sx and conf_tab_gx are identical ⇒ conf_tab
|
2024-04-03 15:40:32 +02:00 |
|
Gwenhael Le Moine
|
69e70b70ce
|
ui_x11 use press_key() and release_key() too now
|
2024-04-02 22:45:36 +02:00 |
|
Gwenhael Le Moine
|
091556e9ad
|
ui_* can use saturn.annunc directly, no need to copy it in display
|
2024-04-02 21:42:59 +02:00 |
|
Gwenhael Le Moine
|
1057a1471a
|
renamed saturn.intenable to saturn.interruptable
|
2024-04-02 21:42:05 +02:00 |
|
Gwenhael Le Moine
|
6a358490d4
|
add --inhibit-shutdown as a quick and crude temporary fix for #15
|
2024-04-02 16:16:29 +02:00 |
|
Gwenhael Le Moine
|
ecc2c22712
|
[ui_text] fall through case to avoid duplicating code
|
2024-04-02 16:15:45 +02:00 |
|
Gwenhael Le Moine
|
8e1f843c28
|
clang-format decided to align things better
|
2024-04-02 16:14:02 +02:00 |
|
Gwenhael Le Moine
|
13aa0c47a8
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2024-03-31 22:45:45 +02:00 |
|
Gwenhael Le Moine
|
276cc721a0
|
state filename in comments
|
2024-03-20 13:48:37 +01:00 |
|
Gwenhael Le Moine
|
66a76e25fd
|
typo
|
2024-03-11 08:09:10 +01:00 |
|
Gwenhael Le Moine
|
d4e7923a69
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2024-02-23 23:38:48 +01:00 |
|
Gwenhael Le Moine
|
49c2139b4c
|
prepare code to clean signatures
|
2024-02-23 23:37:39 +01:00 |
|
Gwenhael Le Moine
|
bf49e00c37
|
correct path
|
2024-02-23 23:37:05 +01:00 |
|
Gwenhael Le Moine
|
023dbc6684
|
groups deprecated options
|
2024-02-23 23:36:40 +01:00 |
|
Gwenhael Le Moine
|
59ff50c339
|
Rephrase message in case of missing config file, see #16
|
2024-02-23 23:25:19 +01:00 |
|
Gwenhael Le Moine
|
ff07e63095
|
bit of rationalizing UI codebases
|
2023-12-21 16:18:04 +01:00 |
|
Gwenhael Le Moine
|
194b8d6ab9
|
unify naming in ui_*
|
2023-12-21 14:28:59 +01:00 |
|
Gwenhael Le Moine
|
b4dddbd542
|
initialize emulator display and lcd_nibbles_buffer in one place only
|
2023-12-21 13:48:40 +01:00 |
|
Gwenhael Le Moine
|
dda20068bd
|
deprecate --tiny and --small in favor of --tui-tiny and --tui-small
|
2023-11-04 23:05:18 +01:00 |
|
Gwenhael Le Moine
|
7624a3afc2
|
[tui] show name and version
|
2023-11-02 10:33:21 +01:00 |
|
Gwenhael Le Moine
|
158c165e07
|
S
|
2023-11-02 10:21:00 +01:00 |
|
Gwenhael Le Moine
|
428be5d88e
|
[tui] add a Fx keybindings reminder on screen
|
2023-11-02 10:19:49 +01:00 |
|
Gwenhael Le Moine
|
2ecd7d5386
|
remap Fx keys in tui and standardize them across all 3 UIs (x11, sdl and tui)
|
2023-11-02 10:04:40 +01:00 |
|
Gwenhael Le Moine
|
0a899ecdc5
|
add a --leave-shift-keys, remove DONT_SHADOW_SHIFTS. refine #13
|
2023-11-01 17:49:50 +01:00 |
|
Gwenhael Le Moine
|
1183b16888
|
missing )
|
2023-10-31 14:08:57 +01:00 |
|
Gwenhael Le Moine
|
2c1596478d
|
defaults UI to those compiled in: x11 > sdl > tui
|
2023-10-31 14:04:07 +01:00 |
|
Gwenhael Le Moine
|
fd2ba567b0
|
avoid segfault when compiled WITH_X11=no WITH_SDL=no and trying --x11 or --sdl
|
2023-10-31 13:17:45 +01:00 |
|
Gwenhael Le Moine
|
5f9f551b34
|
attempt to be more tolerant to older lua
|
2023-10-29 20:37:07 +01:00 |
|
Gwenhael Le Moine
|
93030325bf
|
make DONT_SHADOW_SHIFTS=yes makes a binary that doesn´t use Shift keys
|
2023-10-22 18:28:43 +02:00 |
|
Gwenhael Le Moine
|
833baaa5ba
|
naming
|
2023-10-19 13:22:18 +02:00 |
|
Gwenhael Le Moine
|
2f19cb8a40
|
it always was a wchar_t
|
2023-10-19 13:19:32 +02:00 |
|
Gwenhael Le Moine
|
8be22aecec
|
[ui_text] Wow, --tui --tiny was much easier then I feared!
|
2023-10-19 11:11:34 +02:00 |
|
Gwenhael Le Moine
|
70b2177950
|
[ui_text] tidy UI
|
2023-10-19 07:31:52 +02:00 |
|
Gwenhael Le Moine
|
50896cf4b7
|
fix redundant .config/ in default value of configDir
|
2023-10-18 17:28:44 +02:00 |
|