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 NASM

Date:04/20/05
Author:Laurent Vogel
URL:http://lvogel.free.fr/
Comments:0
Info:n/a
Score: (2.82 in 17 votes)
%if 0
  nasm preprocessor version of 99 bottles of beer
  Laurent Vogel,  http://lvogel.free.fr
  run as:  nasm -e THIS_FILE
%endif
%define c ,
%define id(a) a
%define p(c) i id(bottle)s of id(beer)c
%assign i 99
%define s s
%rep i i
p(id() on the id(wall)c)
p(.)
take one down, pass it around,
%assign i i-1
%if i <= 1
%define s
%if i == 0
%define i No
%endif
%endif
p(id() on the wall.)

%endrep

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: