Coder Social home page Coder Social logo

ra1fh / nonpareil-0.79 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.42 MB

Nonpareil is a microcode-level simulator for electronic calculators written by Eric Smith

License: GNU General Public License v2.0

CMake 1.75% C 88.07% Lex 2.40% Yacc 7.78%

nonpareil-0.79's Introduction

Nonpareil Simulator for Electronic Calculators

doc/screenshot.png

Nonpareil is a microcode-level simulator for electronic calculators written by Eric Smith and published at https://nonpareil.brouhaha.com/

This repository contains some modifications compared to nonpareil-0.79:

  • The build system has been replaced with CMake 3
  • Some correctness and compilation fixes
  • ROMs are not included and will be downloaded during the build.

Currently it is able to simulate some of the HP calculators introduced between 1972 and 1982:

  • HP-35, HP-45, HP-55, HP-80
  • HP-21, HP-25,
  • HP-31E, HP-33C, HP-34C, HP-37E, HP-38E, HP-38C
  • HP-41CV, HP-41CX

Build Requirements

  • CMake >= 3.11
  • GTK+-2
  • SDL 1.2
  • bison >= 3.0
  • flex
  • libpng
  • libxml2

Tested Operating Systems

  • Debian GNU/Linux
  • Fedora
  • OpenBSD (amd64, macppc, sparc64)
  • Raspberry Pi OS (32-bit and 64-bit)
  • Ubuntu (20.04 and 22.04)
  • Windows

Installing Build Dependencies

Debian, Raspberry Pi OS, Ubuntu

sudo apt install bison cmake flex git libfl-dev \
     libgtk2.0-dev libpng-dev libsdl1.2-dev libxml2-dev

Fedora

sudo dnf install bison cmake flex git gtk2-devel \
     libfl-devel libpng-devel libxml2-devel sdl12-compat-devel

OpenBSD

doas pkg_add bison cmake git gtk+2 libxml png sdl

Windows

Windows 11 Build 22000 or later has X11/Wayland support in Windows Subsystem for Linux (WSL). Setup WSL, install an Ubuntu container and follow the Ubuntu instructions.

Compilation and Installation

git clone https://github.com/ra1fh/nonpareil.git
mkdir -p nonpareil-build
cd nonpareil-build
cmake ../nonpareil
make
sudo make install

Usage

  • Invoke nonpareil from the command line and select a calculator model by loading a KML file
  • Or: use one of the alias commands that preselect a KML file: 21, 25, 32e, 33c, 34c, 35, 37e, 38c, 38e, 41cv, 41cx, 45, 55, 80
usage: nonpareil [options...] kmlfile
options:
   --shape (default)
   --noshape
   --kmldebug
   --kmldump
   --scancodedebug
   --nostate
   --trace
   --stop

nonpareil-0.79's People

Contributors

ra1fh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.