You have posted it as an Article under the Article / Source code section. I have moved it to the Queries and Discussion forum. MVI B, C is wrong and it should MVI B, XXXX some memory location
Furthermore, MVI is a move immediate instruction, expecting an immediate value in the instruction, and not a register. I would suggest that you study your language reference, right after you study where you might appropriately ask your questions.