IP Pascal Programs


This page contains a collection of typical programs for IP Pascal. Some of the programs are useful, some not. Mainly they are examples of IP Pascal use.

Please note: "smart linking", or the automatic deletion of unused library routines during the link phase, is not currently enabled in IP Pascal. This means that you will see a large binary for even a trivial program. Please compare only runtime speed and not size on these programs.

Text mode files

Standard command line oriented programs.

ls.pas            List the current directory

ls.exe

prmex.pas         A minimal executive (shell)

prmex.exe

startrek.pas      From USUS, the original text based startrek game

startrek.exe

prime.pas         The original prime number benchmark

prime.exe

diff.pas          File binary compare (not the Unix source compare)

diff.exe

mine.pas          Mines game in text mode

mine.exe

roman.pas         The roman numeral printer from "User Manual and Report"

roman.exe

ptime.pas         Print current time

ptime.exe

cpt.pas           Text file copy (preserves eoln)

cpt.exe

hello.pas         The "hello, world" program.

hello.exe

lc.pas            Convert file to lower case

lc.exe

length.pas        Print length (in bytes) of a file

length.exe

pl.pas            Print Pascal program listing

pl.exe

sc.pas            Show control characters in ASCII file (in \ctl form)

sc.exe

spcend.pas        Remove right hand (useless) spaces from document

spcend.exe

strcom.pas        Remove comments from Pascal program (an elementary obfuscator)

strcom.exe

tl.pas            Type program with line numbers

tl.exe

ty.pas            Type text file

ty.exe

wc.pas            Count words in text file

wc.exe

pascals.pas       N. Wirth's Pascal-S compiler/interpreter program

pascals.exe

Terminal mode files

Programs that use x-y positioning on the screen and colors, but are still character oriented. On systems like Windows XP that can represent a console text surface that is larger than the window (i.e., has scroll bars), you will need to expand the window or change the character x-y size until it all fits in the window. This is because the games attempt to use all of the console surface provided, even if it is off screen.

snake.pas         Unix "snake" game, eat scores while snake grows. Use arrow keys to set

snake.exe         direction.

mine.pas          The classic find the hidden mines game. Use arrow keys or mouse.

mine.exe

pong.pas          Pong in character mode. Yes, really. Use a joystick for this.

pong.exe

 

Console mode programs can use sound as well. It is not practical to use sound programs from serial mode, because you need timers for note timing.

 

keyboard.pas      Turns the keyboard into piano, using midi.

keyboard.exe

play.pas          Emulates Qbasic's "play" statement for midi output.

play.exe

 

Graphical mode files

hellow.pas        Prints "hello from Pascal windows", in a box. This is a demo of direct to

                  Windows API programming.

hellow.exe

 

"dazzlers" are my name for useless programs that draw interesting animated paterns on the screen. IP Pascal makes animation easy with multiple drawing surfaces, and a built in frame timer.

 

line1.pas         Line drawing programs.

line1.exe

line2.pas

line2.exe

line3.pas

line3.exe

line4.pas

line4.exe

line5.pas

line5.exe

 

Check out line6. This is line1 with "multimode" debugging added. This means that it opens a console window in addition to the graphics window, and writes status messages to that during the program run !

 

line6.pas

line6.exe

ball1.pas         Ball drawing programs.

ball1.exe

ball2.pas

ball2.exe

ball3.pas

ball3.exe

ball4.pas

ball4.exe

ball5.pas

ball5.exe

ball6.pas         3-d balls with sound, no extra charge.

ball6.exe

car_rev.wav       These wave files play in ball6, or you can use your own.

pong.wav

square1.pas       Square drawing programs.

square1.exe

square2.pas

square2.exe

square3.pas       A "square" can also be a bitmap.

square3.exe

mypic1.bmp        These pictures go with square3, or use your own.

mypic2.bmp

mypic3.bmp

mypic4.bmp

tunnel1.pas       Going "down a tunnel". What can I say, try one.

tunnel1.exe

tunnel2.pas

tunnel2.exe

tunnel3.pas

tunnel3.exe

pixel1.pas        Bouncing xored pixel.

pixel1.exe

 

These graphical games use sound and joysticks.

 

pong.pas          Yep. Pong.

pong.exe

breakout.pas      Breakout.

breakout.exe

Graphical window mode files

win_prog/clockg.pas

win_prog/clockg.exe


For more information contact: Scott A. Moore samiam@moorecad.com