Code Monkey home page Code Monkey logo

freecalc-z80's Introduction

Z80 FREECALC

This is a Z80 spreadsheet program for VT100-compatible terminals based on the Pascal program written and donated to Public Domain by Martin Burger. The original program was written in Oregon Pascal-2 for a DEC PDP-11 machine running the TSX+ or RT-11 OS, and is very similar in formula syntax, command set and functionality to the grandfather of all spreadsheet programs Visicalc.

This version can be built for both CP/M and RSX180/280, and differs from the original program in the following ways:

  • BCD floating point math is used for numeric computations.
  • Numeric values can be entered in exponential format.
  • More functions were added: @SIN, @COS, @ATN, @SIGN, @EXP, @EXP10, @LOG, @LOG10, @FACT, and constant @PI.
  • Fixed the @AVG function (in the original program items to be averaged were counted twice and therefore @AVG returned half of the correct value.)
  • The format of the saved spreadsheet file is different, and contains additional information like version, column widths, heading, etc.
  • Several new commands were added (see the Help file):
    • Erase single cell or range of cells.
    • Set numeric format (Number, Scientific or General).
    • Delete the entire spreadsheet.
    • Toggle color (experimental, for e.g. VT525 or xterm).

The orig directory contains the original Pascal program, @AVG function bug included (see line 941 and 948: one of the two is superfluous and must be removed).

The c directory contains a C version of the Pascal program, but with the added features of the Z80 program and without the @AVG bug. The file format is also compatible with the Z80 version. But note that the C program internally uses standard C binary floating point math, and thus it may give different results than the Z80 version; the program simply converts BCD values to binary and vice-versa when reading/saving the spreadsheet file.

FreeCalc on CP/M

freecalc-z80's People

Contributors

hperaza avatar

Stargazers

Bocke avatar Tony Nicholson avatar

Watchers

Tony Nicholson 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.