alpertron logo

Dario Alpern's site Home Page
Ver sitio en castellano
IMPORTANT NOTICE: Starting from April 4th, 2001, the new Web address for this page is Please update your bookmarks, because this page will not be updated anymore.

Darío Alpern - Webmaster

80x86 microprocessor assembler programs

Note: These programs are on the public domain. They contain both the source code and the executable (with no virus, of course!!). If you have any comment, please fill the form.

  1. Prime numbers: Multitasking program that shows how to program in protected mode of the Intel 80386 microprocessor in assembly language. It shows how to use the system tables, protected-mode interrupts, passing from real mode to protected mode and vice versa. To run this program the computer must be in MS-DOS mode (it only runs in real mode and not in virtual-86 mode). Another option is to run it from a bootable diskette. Comments are written in Spanish.

  2. Pi and natural logarithm of 2: This program computes the number PI as well as the natural logarithm of 2 very quickly. It runs in any 8086-family processor. Using an 80386 o later and with a XMS driver, this program is able to compute any number of digits of Pi, being limited only by the number of bytes free in extended memory. The program is partially commented in Spanish.

  3. Pi, natural logarithm of 2 and e (using DPMI): This program computes the number PI as well as the natural logarithm of 2 faster than the XMS method. You can see the results in any of the radices 2-36. This program computes also the value of number e.

    It needs an 80386 or later and a DPMI server (for example Windows or OS/2). The program is now commented in English!

    Congratulations to Jan Kraak who used my DPMI routines to make his own program to calculate PI! Look at jasonp's Pi Programs Page for details.

  4. Small examples of protected mode assembler programming (sources and executables in Spanish). Press here.

    My first programs

  5. Skiing: This was the first program I wrote in 8088 assembly language. Now commented in English!

  6. Sound: This was the first TSR I wrote. When it is installed, pressing a key causes the speaker to beep to a pitch which depends on the key. Now commented in English.