// file: cio.isc // author: Robert Keller // purpose: minimal ISC program showing console input/output loop // This program reads two numbers in succession from the console input // adds them, then stores the result on the console output. use temp1 use temp2 // // The main program starts here // origin 0 // start loading instructions at location 0 use loop_address // use reg to hold address for looping back lim loop_address loop // initialize address register label loop cin temp1 cin temp2 add temp1 temp1 temp2 cout temp1 junc loop_address // go back