Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Dot Tool

Date:04/20/05
Author:Christopher Winter
URL:n/a
Comments:0
Info:n/a
Score: (2.00 in 3 votes)
Dot-Tool is a self-written development-tool from Christopher
Winter, employee of Siemens VDO Automotive AG, and is used 
within the software development and simulation of the multi-
function-displays of Siemens VDO.



@99Bottles
 // 99 bottles of beer with DOT-Tool Macro
 // DOT-Tool - dot-display-simulation
 // (c) Christopher Winter
 
 // set display dimensions
 MODE("FREI", 193, 36);
 // show dot
 PAGE(3);
 // switch on dot-grid
 GRID(1);
 ANIMATE(0);
 // drink!
 FOR (i=99; i > 0; i--) {
  CLS();
  TEXT(1, 1,2,itoa(i)+" BOTTLES OF BEER ON THE WALL,");
  TEXT(1,10,2,itoa(i)+" BOTTLES OF BEER");
  TEXT(1,19,2,"TAKE ONE DOWN AND PASS IT AROUND");
  TEXT(1,28,2,itoa(i-1)+" BOTTLES OF BEER ON THE WALL");
  UPDATE();
  ANIMATE(2);
  PAUSE(100);
  ANIMATE(1);
 }
 ANIMATE(3, "99BOTTLES.GIF");

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: