x48ng emulator "engine" as a standalone library
Find a file
Gwenhael Le Moine 7d701cb51d
use FIRST_BUTTON
2023-09-19 15:01:18 +02:00
.github/workflows compile x11 in github workflows 2023-09-18 11:19:46 +02:00
dist all parameters are handled through getopt_long, no more X resources 2023-09-19 14:01:12 +02:00
doc_0.6.4 clean doc_0.6.4 content; move installed files into dist/ in which binaries are compiled in too 2023-05-10 15:50:51 +02:00
romdump delete autotools files, use only simple Makefile 2023-04-26 16:51:11 +02:00
src use FIRST_BUTTON 2023-09-19 15:01:18 +02:00
.clang-format add and use .clang-format 2023-04-27 12:15:59 +02:00
.gitignore clean doc_0.6.4 content; move installed files into dist/ in which binaries are compiled in too 2023-05-10 15:50:51 +02:00
AUTHORS add myself to AUTHORS 2023-04-26 19:49:18 +02:00
LICENSE Initial commit 2015-07-26 11:13:05 +02:00
Makefile clean-up Makefile 2023-09-19 14:03:41 +02:00
README.md Both sdl and x11 front-ends are compiled, selectable at runtime 2023-09-18 15:25:35 +02:00

x48ng -- HP48 CPU emulator

(I'm not very good at writing, see ./README_0.6.4 for the original README)

This is my fork of x48-0.6.4 where I deviate from the original code and do my own thing.

What have I done:

  1. renamed it to x48ng to avoid confusion
  2. merged in a SDL1 version I found @ https://code.google.com/archive/p/x48-sdl/source/default/source
  3. removed the code supporting Solaris, HP-UX, etc.
  4. removed the autotools-based build system and wrote a simple Makefile instead
  5. added a x48ng.desktop file and an icon
  6. refactoring as a way to explore/understand the codebase

Bugs to fix

See https://github.com/gwenhael-le-moine/x48ng/issues

What more I would like to do:

short term

  • make different gui switchable at runtime
  • port from sdl1.2 to sdl2
  • add an text UI (ncurses & drawille)

long(er) term

  • GUI in gtk(4)?
  • support the HP49g ROM?

Compilation

Dependencies (see .github/workflows/c-cpp.yml for debian packages names)

  • readline

for SDL version:

  • SDL_gfx1
  • SDL 1.2

for x11 version:

  • x11

Installation

  1. Run sudo make install PREFIX=/usr DOCDIR=/usr/doc/x48ng MANDIR=/usr/man DESTDIR=/tmp/package filling in your own values for PREFIX, DOCDIR, MANDIR and DESTDIR.
  2. once installed run /usr/share/x48ng/setup-x48ng-home.sh to setup your ~/.x48ng/. It sets up a HP 48GX with a 128KB card in port 1 and a 4MB card in port 2
  3. run x48ng and enjoy

Development

  • make FULL_WARNINGS=yes to compile with all warnings
  • make clean and make mrproper to clean between compilation runs
  • make pretty-code to format the code using clang-format and the provided .clang-format

Friends and inspiration