ADRESS
|
LABEL
|
MNEMONICS
|
HEX CODE
|
DESCRIPTION
|
4100
|
|
MOV A,#06
|
74
|
Move data to accumulator
|
4101
|
|
|
06
|
|
4102
|
|
MOV B, #02
|
75
|
Move data to B register
|
4103
|
|
|
02
|
|
4104
|
|
DIV AB
|
A4
|
Divide A by B
|
4105
|
|
MOV DPTR # 4500
|
90
|
Move data to the DPTR
|
4106
|
|
|
00
|
|
4107
|
|
|
45
|
|
4108
|
|
INC DPTR
|
A3
|
Increment data pointer
|
4109
|
|
MOV X,@DPTR,A
|
F0
|
Move A to DPTR
|
410A
|
|
MOV A ,B
|
E5
|
Move B register to A
|
410B
|
|
MOV X,@DPTR,A
|
F0
|
Move A to DPTR
|
410C
|
|
SJMP 410E
|
80
|
|
410D
|
|
|
0E
|
Stop the program
|
410E
|
|
|
41
|
|
Saturday, 22 February 2014
Program for 8 bit Division in 8051
Share This
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment