Thursday, 27 February 2014
Algorithm for 8 bit subtraction in 8051
|
ADDRESS
|
LABEL
|
MNEMONICS
|
HEX CODE
|
DESCRIPTION
|
|
4100
|
|
CLRC
|
C3
|
Clear C
register
|
|
4101
|
|
MOV A,#05
|
74
|
Move data
to A
|
|
4102
|
|
|
05
|
|
|
4103
|
|
SUB A,#04
|
94
|
Add data to
A
|
|
4104
|
|
|
04
|
|
|
4105
|
|
MOV DPTR, #
4150
|
90
|
Move the
data to the DPTR
|
|
4106
|
|
|
50
|
|
|
4107
|
|
|
41
|
|
|
4108
|
|
MOVX @ DPTR
|
F0
|
Move data
immediately A to DPTR
|
|
4109
|
|
SJMP 410F
|
80
|
Stop the
program
|
|
410A
|
|
|
0F
|
|
|
410B
|
|
|
41
|
|
Wednesday, 26 February 2014
Tuesday, 25 February 2014
Monday, 24 February 2014
16 bit Multiplication using 8085
|
ADDRESS
|
LABEL
|
MNEUMONICS
|
HEX CODE
|
DESCRIPTION
|
|
8000
|
|
LXI B,0006
|
01
|
|
|
8001
|
|
|
06
|
Load immediately to B
|
|
8002
|
|
|
00
|
|
|
8003
|
|
LXI D,0007
|
11
|
|
|
8004
|
|
|
07
|
Load immediately to H register
|
|
8005
|
|
|
00
|
|
|
8006
|
|
LXI H, 0000
|
21
|
|
|
8007
|
|
|
00
|
Load immediately the data into H
|
|
8008
|
|
|
00
|
|
|
|
|
|
|
Add content of BC to HL register pair
|
|
8009
|
LOOP
|
DAD B
|
09
|
|
|
|
|
|
|
Content of B register is added to HL pair
|
|
800A
|
|
DLX D
|
1B
|
|
|
|
|
|
|
Decrement by 1 of d register pair
|
|
800B
|
|
MOV A,E
|
7B
|
|
|
|
|
|
|
Move the content of D register to A
|
|
800C
|
|
OR A, B
|
32
|
|
|
|
|
|
|
The content of D register is ORed bit by bit with content
of A
|
|
800D
|
|
INC LOOP
|
12
|
Jump on no carry
|
|
800E
|
|
|
09
|
|
|
800F
|
|
|
80
|
|
|
8010
|
|
STA 9000
|
22
|
|
|
8011
|
|
|
00
|
Store the content of HL register pair in the memory
|
|
8012
|
|
|
90
|
|
|
8013
|
|
HLT
|
90
|
Stop the program
|
Sunday, 23 February 2014
Program for 16 bit Addition using 8085
|
ADDRESS
|
LABEL
|
MNEUMONICS
|
HEX CODE
|
|
|
8000
|
|
LXI M,1250
|
21
|
|
|
8001
|
|
|
32
|
|
|
8002
|
|
|
12
|
|
|
8003
|
|
LXI B,6139
|
01
|
|
|
8004
|
|
|
29
|
|
|
8005
|
|
|
61
|
|
|
8006
|
|
MVI D,00
|
16
|
|
|
8007
|
|
|
00
|
|
|
8008
|
|
DAD B
|
09
|
|
|
|
|
|
|
|
|
8009
|
|
INC LOOP 800D
|
D2
|
|
|
800A
|
|
|
0D
|
|
|
800B
|
|
|
80
|
|
|
800C
|
|
INR D
|
14
|
|
|
800D
|
LOOP
|
8HLD9000
|
22
|
|
|
800E
|
|
|
00
|
|
|
800F
|
|
|
90
|
|
|
8010
|
|
MOV A, D
|
74
|
|
|
8011
|
|
STA 9002
|
32
|
|
|
8012
|
|
|
02
|
|
|
8013
|
|
|
90
|
|
|
8014
|
|
HLT
|
76
|
Subscribe to:
Posts
(
Atom
)
Anna University
- CGPA Calculator
- Exams & Results
- Questions
- Syllabus
- programs