Skip to content

eshazen/calc-demo-xwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calc-demo-xwin

X-Windows calculator demo application

This is a simple X-Windows application using the old XForms library to experiment with various calculator UI features. This may or may not be ever implemented in a real calculator!

To build:

  $ cd src
  $ make clean
  $ make

Also see macOS instructions.

What works:

  • Value entry with various word sizes and hex/bin/dec radix
  • Conversion between sizes with sign-extension
  • Negate with CHS
  • Twos compliment arithmetic
  • Stack ops similar to HP: Enter, Drop, exchange, clear

Very early screenshot below

[early_screenshot.jpg]

Todo

  • ENTER should duplicate X but set flag to over-type (done)
  • Fix decimal entry so digits roll off in a sensible way (done)
  • What to do if you enter a value above unsigned max in decimal? (done)
  • check arithmetic behavior vs word size
  • add some more functions and hot-keys
  • add hot-key menu somewhere
  • use a bigger font for the display

About

X-Windows calculator demo application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published