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 CESIL

Date:05/19/05
Author:Marinus Oosters
URL:n/a
Comments:0
Info:n/a
Score: (3.00 in 22 votes)
* 99.CES
* 99 bottles of beer in CESIL
* Author: Marinus Oosters
* CESIL can be found at:
* http://www.obelisk.demon.co.uk/cesil/

      LOAD     99
      STORE    BEERS
DRINK OUT
      PRINT    " bottle"
      SUBTRACT 1
      JIZERO   SNG
      JUMP     PLR
SNG   JUMP     CNT
PLR   PRINT    "s"
CNT   PRINT    " of beer on the wall"
      LINE
      LOAD     BEERS
      OUT
      PRINT    " bottle"
      SUBTRACT 1
      JIZERO   SNG2
      JUMP     PLR2
SNG2  JUMP     CNT2
PLR2  PRINT    "s"
CNT2  PRINT    " of beer"
      LINE
      PRINT    "Take one down, pass it around"
      LINE
      JIZERO   UP
      STORE    BEERS
      OUT
      PRINT    " bottle"
      SUBTRACT 1
      JIZERO   SNG3
      JUMP     PLR3
SNG3  JUMP     CNT3
PLR3  PRINT    "s"
CNT3  PRINT    " of beer on the wall."
      LINE
      LINE
      LOAD     BEERS
      JUMP      DRINK
UP    PRINT    "No more bottles of beer on the wall."
      HALT

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: