Implementation of Up/Down Counter

Which pins of the 8051 are typically used as general-purpose I/O?
What is the primary function of the Accumulator (A register) in 8051?
What should be written to a port pin in 8051 to use it as input?
What is the maximum value that an 8-bit counter can hold in 8051?
Which instruction is used to check if a particular bit is set in 8051 assembly?
What does INT0 refer to in 8051?
Which pin of the 8051 microcontroller is used as the external interrupt INT0?
What is the purpose of the RETI instruction?
What is the role of EA in IE register?
Which port is used in this experiment to show output?