lynxaegon / pi

Pi number calculator using 8088 assembly language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PI calculator in 146 bytes (boot sector or COM file)
by Oscar Toledo G. Nov/11/2021

http://nanochess.org
https://github.com/nanochess

This is a simple program to calculate the PI digits. It can be
run as a COM file or put into a boot sector of a floppy disk to be
run.

It's compatible with 8088 (the original IBM PC), and it will take
a lot of time on a real hardware! ;)

If you want to assemble it, you must download the Netwide Assembler
(nasm) from www.nasm.us

Use this command line:

  nasm -f bin pi.asm -Dcom_file=1 -o pi.com
  nasm -f bin pi.asm -Dcom_file=0 -o pi.img

Tested with VirtualBox for Mac OS X running Windows XP running this
program, it also works with DosBox and probably with qemu:

  qemu-system-x86_64 -fda pi.img

Enjoy it!


>> THE BOOK <<        

Do you would like to learn 8086/8088 assembly language? Then get
my book Programming Boot Sector Games and you'll also find a
8086/8088 crash course!

Now available from Lulu:

  Soft-cover
    http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/paperback/product-24188564.html

  Hard-cover
    http://www.lulu.com/shop/oscar-toledo-gutierrez/programming-boot-sector-games/hardcover/product-24188530.html

  eBook
    https://nanochess.org/store.html

These are some of the example programs documented profusely
in the book:

  * Guess the number.
  * Tic-Tac-Toe game.
  * Text graphics.
  * Mandelbrot set.
  * F-Bird game.
  * Invaders game.
  * Pillman game.
  * Toledo Atomchess.
  * bootBASIC language.

About

Pi number calculator using 8088 assembly language

License:BSD 2-Clause "Simplified" License


Languages

Language:Assembly 85.3%Language:Makefile 12.0%Language:Batchfile 2.7%