If a task needs to take immediate input from the user then MVI instruction is used. This MVI needs 2 Machine cycles for the execution. The syntax of mvi is below.
MVI register_name, value. The value is in hexadecimal.
Example,MVI A 24H.