In: Computer Science
From this information: the following code, explain which statements are instructions, which are assembly directives, which are labels, and which are comments: ;"this"program"adds"3"to address $2000"and"increments"Accumulator"B """"""""
org"$4000
ldaa"$2000
adda"#3 ;"
add"3"to"(A)"
staa"$2000
incb ; increment"B
1. ;this"program"adds"3"to address
2. $2000"and"increments"Accumulator"B """"""""
3. org"$4000
4. ldaa"$2000
5. adda"#3 ";add"3"to"(A)"
6. staa"$2000
7.incb ; increment"B
1. The first line is a comment line in assembly language comments are written after the ; i.e. we first write this ; then write whatever we want assembler doesn't consider this for execution.
2. Is a address
3. The 3 one is a assembly directive.
4. ldaa is the instruction which is for data transfer.
5. Adda is the instruction which is add to a Register.
6. Staa is an instruction.
7. Inc is also an instruction which is for increment.