BR Main ;branch to location Main sum: .WORD d#0 ;set up word with zero as the contents num1: .BLOCK d#2 ;set up a two byte block for num1 num2: .BLOCK d#2 ;set up a two byte block for num2 num3: .BLOCK d#2 ;set up a two byte block for num3 Main: LOADA sum,d ;load a copy of sum into accumulator DECI num1,d ;read and store a decimal number in num1 ADDA num1,d ;add the contents of num1 to accumulator DECI num2,d ;read and store a decimal number in num2 ADDA num2,d ;add the contents of num2 to accumulator DECI num3,d ;read and store a decimal number in num3 SUBA num3,d ;subtract the contents of num3 from accumulator STOREA sum,d ;store contents of the accumulator into sum DECO sum,d ;output the contents of sum STOP ;stop the processing .END ;end of the program