Voting

Category

assembly language

Bookmarking

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

Language IBM HLASM Macro

Date:11/17/09
Author:John P. Rotten
URL:n/a
Comments:1
Info:http://www-01.ibm.com/software/awdtools/hlasm/
Score: (2.71 in 7 votes)
         MACRO                                         
         BEER                                          
.*       IBM High Level Assembler Macro Version        
         LCLA  &BEER                                   
&BEER    SETA  99                                      
.LOOP    ANOP                                          
         MNOTE '&BEER bottles of beer on the wall'     
         MNOTE '&BEER bottles of beer'                 
         MNOTE 'Take one down and pass it around'      
&BEER    SETA  &BEER-1                                 
         AIF   (&BEER EQ 0).NOMORE                     
         MNOTE '&BEER bottles of beer on the wall'     
         MNOTE ' '                                     
         AIF   (&BEER NE 0).LOOP                       
.NOMORE  ANOP                                          
         MNOTE 'No more bottles of beer on the wall'   
         MNOTE ' '                                     
         MNOTE 'No more bottles of beer on the wall'   
         MNOTE 'No more bottles of beer'               
         MNOTE 'Go to the store, buy some more,' 
         MNOTE '99 bottles of beer on the wall'  
         MEND

Download Source | Write Comment

Alternative Versions

Comments

>>  barrym said on 09/03/10 06:11:11

barrym 1 bottles? kinda lame...

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: