[Assembly] - What is the value of the program counter in | SheCodes

[Assembly] - What is the value of the program counter in Assembly?

Learn what is the value in the program counter when executing the third INP instruction in assembly language.

👩‍💻 Technical question

Asked 1 year ago in Assembly by PRINCESS LILY

INP, STA VAL1, INP, STA VAL2, INP, STA VAL3, SUB VAL2, BRP CHECK1, LDA VAL2, STA VAL3, CHECK1 LDA VAL3, SUB VAL1, BRP CHECK2, LDA VAL1, STA VAL3, CHECK2 LDA VAL3, OUT, HLT, VAL1 DAT, VAL2 DAT, VAL3 DAT. What will be the value in the program counter when the third INP instruction is executed?