Clears the in register. 00 Increment the program counter by 1 if the number in the accumulator is negative. Increment the program counter by 1 if the number in the accumulator is zero. Increment the program counter by 1 if the number in the accumulator is zero or positive. Small computer assembly program to input two numbers and output the sum.
Comments are essential to understanding assembly programs.
Assume the hardware input register is 01 and the output register is 02. The first column contains the memory location. The second column contains the mnemonic code. The third column contains the assembled code. The fourth column contains the comments for each statement.