# Add - Fetches and adds two numbers from the input stream for the TTC # - The result is put on the output stream lc r1 load0 lc r2 load1 load0: ldin r3 sin # Get input parameters (repeat until input stream is ready) jmp r0 r1 load1: ldin r4 sin jmp r0 r2 add r5 r3 r4 # Add input parameters stout r5 # Output result jmp r0 r1 # Restart program