Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "# Zero.
- 99999999999999999999 99999999999999999999 99999999999999999999
- # Number of bottles.
- 9999999999999 999
- 9999999999999 9999999999999 99
- 9999999999999 9999999999999 9
- # Start of 'main loop' address.
- 99999 99
- 99999 99999 9
- 99999 99999 9
- 99999 99999 9
- # Start of 'bottles of beer' address.
- 999999 99
- 999999 999999 99999999999999999999 99
- 999999 999999 99999999999999999999 99
- 999999 999999 9
- 999999 999999 9
- 999999 999999 9
- # Start of 'bottles of beer on the wall' address.
- 9999999 99
- 9999999 9999999 99999999999999999999 99
- 9999999 9999999 99999999999999999999 99
- 9999999 9999999 99999999999999999999 99
- 9999999 9999999 9
- 9999999 9999999 9
- 9999999 9999999 9
- 9999999 9999999 9
- 9999999 9999999 9
- 9999999 9999999 9
- # 'Return after gosub #1' address.
- 99999999 99999 99999999999999999999 9
- # 'Return after gosub #2' address.
- 999999999 99999999 99999999999999999999 9
- 999999999 999999999 99999999999999999999 9
- # 'Return after gosub #3' address.
- 9999999999 99999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- 9999999999 9999999999 99999999999999999999 9
- # 'Return after gosub #4' address.
- 99999999999 9999999 99999999999999999999 9
- #############
- # MAIN LOOP #
- #############
- # Print number of bottles.
- 9999999999999
- # Run the 'bottles of beer on the wall' subroutine.
- 99999999999999999 99999999 # Set return address
- 9999999 99999999999999999999 # Gosub #1
- # Print ', '
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999
- # Print number of bottles
- 9999999999999
- # Run the 'bottles of beer' subroutine.
- 9999999999999999999 999999999 # Set return address
- 999999 99999999999999999999 # Gosub #2
- # Print '. Take one down, pass it around, '
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # .
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # T
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # a
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # k
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # e
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 # o
- 999999999999999999 999999999999999999 9
- 999999999999999999 # n
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # e
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 # d
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 # o
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # w
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # n
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 # ,
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # p
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # a
- 999999999999999999 999
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # s
- 999999999999999999 # s
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # i
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 # t
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # a
- 999999999999999999 999
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # r
- 999999999999999999 999
- 999999999999999999 # o
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # u
- 999999999999999999 999
- 999999999999999999 999999999999999999 9
- 999999999999999999 # n
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 # d
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 # ,
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- # Decrement number of bottles.
- 9999999999999 9999999999999 9
- # Print number of bottles.
- 9999999999999
- # Run 'bottles of beer on the wall' subroutine.
- 99999999999999999 9999999999 # Set return address
- 9999999 99999999999999999999 # Gosub #3
- # Print '.\n'
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999
- 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999
- # If number of bottles == 0, goto end. Otherwise, goto start of main loop.
- 999999999999999999999999999999999999999999999999 9999999999999
- 99999 99999999999999999999
- ################################
- # 'BOTTLES OF BEER' SUBROUTINE #
- ################################
- # Print ' bottles of beer'
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # b
- 999999999999999999 999
- 999999999999999999 # o
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # t
- 999999999999999999 # t
- 999999999999999999 999
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # l
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # e
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # s
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 # o
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # f
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # b
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # e
- 999999999999999999 # e
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # r
- # Return from subroutine.
- 9999999999999999999 99999999999999999999
- ############################################
- # 'BOTTLES OF BEER ON THE WALL' SUBROUTINE #
- ############################################
- # Call 'bottles of beer' subroutine.
- 9999999999999999999 99999999999 # Set return address
- 999999 99999999999999999999 # Gosub #4
- # Print ' on the wall'
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 # o
- 999999999999999999 999999999999999999 9
- 999999999999999999 # n
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 999999999999999999 99999999999999999999 9
- 999999999999999999 # t
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # h
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # e
- 999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 # <space>
- 999999999999999999 999
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 999999999999999999 9
- 999999999999999999 # w
- 999999999999999999 999999999999999999 99
- 999999999999999999 999999999999999999 99
- 999999999999999999 # a
- 999999999999999999 999999999999999999 99999999999999999999 99
- 999999999999999999 # l
- 999999999999999999 # l
- # Return from subroutine.
- 99999999999999999 99999999999999999999"
- []
- {:I;_N" 9"+--N/:P:,$W=){1a*Ab}%:V;{PT):T(=:LS%_{LS#\:,_,({(\{V=}%@{V-1@{2$*+0@-\}*\;t:V;}{:|T@V=9*?:T;}?}{~\{_V=\1&!{128%c}*o}{VIW):W=it:V;}?}?}R?Tg)TP,<*}g}
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement