WORMS (located in \TOOLKIT\SAMPLES\OS2\CONSOLIO) demonstrates how to call video (Vio), keyboard (Kbd), and mouse (Mou) 16-bit function from a 32-bit code segment. This sample program displays earthworms aimlessly moving about the screen. Each worm is a separate thread with a unique color combination and movement pattern. When one worm encounters another worm, the color attribute of the worm is set to red. You can add or delete worms using the keyboard or mouse.


[Back] [Next]