Guest User

Untitled

a guest
Jan 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ======== Symbols ==========
  2.  
  3. #0
  4. #1      currentChar
  5. #2      readChar
  6. #10     operand1Start
  7. #20     operand2Start
  8.  
  9. ===========================
  10.  
  11.  
  12. >>+                         #readChar = true
  13. [                           #while readChar
  14.    -                           #readChar = false
  15.    <                           #go to currentChar
  16.    ,.                          #currentChar = readch()
  17.    -------------               #currentChar minus 13
  18.    [                           #if currentChar minus 13
  19.        +++++++++++++               #restores currentChar value
  20.        [                           #while currentChar
  21.            -                           #decrement currentChar
  22.            >>>>>>>>>>>                 #go to second char of operand1
  23.            [>]                         #go to first available slot on operand1
  24.            <                           #backs one slot
  25.            +                           #increment slot
  26.            [<]                         #backs to operand1Start
  27.            <<<<<<<<<                   #backs to currentChar
  28.        ]
  29.        >+                          #readChar = true
  30.        <                           #backs to currentChar
  31.    ]
  32.    >                               #go to readChar
  33. ]
Add Comment
Please, Sign In to add comment