8051-Bit Multiplications
by
eees.in
·
Published
· Updated
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:
OUTPUT:
PROGRAM:
| ADDRESS | OPCODES | MNEMONICS | COMMENDS |
| 8500 | 74 06 | MOV A,#06 | |
| 8502 | 75 F0 02 | MOV F0,#02 | |
| 8505 | A4 | MUL AB | |
| 8506 | 90 86 00 | MOV DPTR,#8600 | |
| 8509 | F0 | MOVX @DPTR,A | |
| 850A | A3 | INC DPTR | |
| 850B | E5 F0 | MOV A,F0 | |
| 850D | F0 | MOVX @DPTR,A | |
| 850E | 80 FE | HERE: SJMP HERE | |
Recent Comments