8051-Bit Multiplications

8-BIT Multiplications

THEORY:

  • Using the accumulator, Multiplication is performed and the result is stored.
  • Immediate addressing is employed.
  • The MUL instruction writes the result in the accumulator

INPUT:

  • MOV A,# 06H
  • MOV F0,#02H 

OUTPUT:

  • 8600     0CH  

PROGRAM:

ADDRESSOPCODESMNEMONICSCOMMENDS
850074 06MOV A,#06 
850275 F0 02MOV F0,#02 
8505A4MUL AB 
850690 86 00MOV DPTR,#8600 
8509F0MOVX @DPTR,A 
850AA3INC DPTR 
850BE5 F0MOV A,F0 
850DF0MOVX @DPTR,A 
850E80 FEHERE:       SJMP HERE 

You may also like...

error: Content is protected !!