// Constants %define testRegister 240 %define dataLEDRegister 255 // put 1 in memory location 240 copylr 1 testRegister // put 1 in the accumulator copyla 1 // display the contents of the accumulator copyar dataLEDRegister // blank display copylr 0 dataLEDRegister // display contents of memory location 240 copyrr testRegister dataLEDRegister // add value at memory location 240 to accumulator (should be 1) addra testRegister // blank display copylr 0 dataLEDRegister // and display the contents of the accumulator (should be 2, but is 241) copyar dataLEDRegister