![Page 1: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/1.jpg)
EE 6502UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR
Prepared by
S.Sayeekumar , AP/RMDEEE
![Page 2: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/2.jpg)
![Page 3: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/3.jpg)
![Page 4: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/4.jpg)
![Page 5: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/5.jpg)
![Page 6: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/6.jpg)
![Page 7: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/7.jpg)
7
80
85
Instru
ctio
n S
et
![Page 8: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/8.jpg)
![Page 9: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/9.jpg)
![Page 10: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/10.jpg)
![Page 11: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/11.jpg)
![Page 12: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/12.jpg)
12
80
85
Instru
ctio
n S
et
![Page 13: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/13.jpg)
![Page 14: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/14.jpg)
![Page 15: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/15.jpg)
15
80
85
Instru
ctio
n S
et
![Page 16: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/16.jpg)
![Page 17: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/17.jpg)
![Page 18: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/18.jpg)
![Page 19: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/19.jpg)
![Page 20: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/20.jpg)
![Page 21: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/21.jpg)
![Page 22: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/22.jpg)
![Page 23: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/23.jpg)
![Page 24: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/24.jpg)
![Page 25: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/25.jpg)
![Page 26: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/26.jpg)
![Page 27: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/27.jpg)
![Page 28: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/28.jpg)
![Page 29: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/29.jpg)
![Page 30: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/30.jpg)
![Page 31: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/31.jpg)
![Page 32: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/32.jpg)
![Page 33: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/33.jpg)
![Page 34: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/34.jpg)
![Page 35: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/35.jpg)
![Page 36: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/36.jpg)
![Page 37: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/37.jpg)
![Page 38: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/38.jpg)
![Page 39: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/39.jpg)
PSW (Program Status word)
- Flag unaffected
* affected
0 reset
1 set
S Sign (Bit 7)
Z Zero (Bit 6)
AC Auxiliary Carry (Bit 4)
P Parity (Bit 2)
CY Carry (Bit 0)
![Page 40: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/40.jpg)
![Page 41: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/41.jpg)
![Page 42: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/42.jpg)
42
80
85
Instru
ctio
n S
et
![Page 43: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/43.jpg)
43
80
85
Instru
ctio
n S
et
![Page 44: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/44.jpg)
44
80
85
Instru
ctio
n S
et
![Page 45: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/45.jpg)
45
80
85
Instru
ctio
n S
et
![Page 46: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/46.jpg)
46
80
85
Instru
ctio
n S
et
![Page 47: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/47.jpg)
47
80
85
Instru
ctio
n S
et
![Page 48: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/48.jpg)
48
80
85
Instru
ctio
n S
et
![Page 49: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/49.jpg)
49
80
85
Instru
ctio
n S
et
![Page 50: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/50.jpg)
50
80
85
Instru
ctio
n S
et
![Page 51: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/51.jpg)
51
80
85
Instru
ctio
n S
et
![Page 52: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/52.jpg)
52
80
85
Instru
ctio
n S
et
![Page 53: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/53.jpg)
53
80
85
Instru
ctio
n S
et
![Page 54: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/54.jpg)
54
80
85
Instru
ctio
n S
et
![Page 55: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/55.jpg)
55
80
85
Instru
ctio
n S
et
![Page 56: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/56.jpg)
circular Left shift
56
80
85
Instru
ctio
n S
et
![Page 57: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/57.jpg)
circular right shift
80
85
Instru
ctio
n S
et
57
![Page 58: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/58.jpg)
58
80
85
Instru
ctio
n S
et
![Page 59: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/59.jpg)
59
80
85
Instru
ctio
n S
et
![Page 60: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/60.jpg)
60
80
85
Instru
ctio
n S
et
![Page 61: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/61.jpg)
61
80
85
Instru
ctio
n S
et
![Page 62: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/62.jpg)
62
80
85
Instru
ctio
n S
et
![Page 63: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/63.jpg)
63
80
85
Instru
ctio
n S
et
![Page 64: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/64.jpg)
64
80
85
Instru
ctio
n S
et
![Page 65: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/65.jpg)
65
80
85
Instru
ctio
n S
et
![Page 66: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/66.jpg)
66
80
85
Instru
ctio
n S
et
![Page 67: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/67.jpg)
67
80
85
Instru
ctio
n S
et
![Page 68: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/68.jpg)
68
80
85
Instru
ctio
n S
et
![Page 69: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/69.jpg)
69
80
85
Instru
ctio
n S
et
![Page 70: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/70.jpg)
70
80
85
Instru
ctio
n S
et
![Page 71: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/71.jpg)
SUMMARY – DATA TRANSFER
MOV Move
MVI Move Immediate
LDA Load Accumulator Directly from
Memory
STA Store Accumulator Directly in
Memory
LHLD Load H & L Registers Directly
from Memory
SHLD Store H & L Registers Directly in
Memory71
80
85
Instru
ctio
n S
et
![Page 72: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/72.jpg)
SUMMARY DATA TRANSFER
An 'X' in the name of a data transfer instruction implies that
it deals with a register pair (16-bits);
LXI Load Register Pair with Immediate data
LDAX Load Accumulator from Address in Register Pair
STAX Store Accumulator in Address in Register Pair
XCHG Exchange H & L with D & E
XTHL Exchange Top of Stack with H & L
72
80
85
Instru
ctio
n S
et
![Page 73: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/73.jpg)
SUMMARY - ARITHMETIC
GROUP
Add, Subtract, Increment / Decrement data in registers or memory.
ADD Add to Accumulator
ADI Add Immediate Data to Accumulator
ADC Add to Accumulator Using Carry Flag
ACI Add Immediate data to Accumulator Using Carry
SUB Subtract from Accumulator
SUI Subtract Immediate Data from Accumulator
SBB Subtract from Accumulator Using Borrow (Carry) Flag
SBI Subtract Immediate from Accumulator
Using Borrow (Carry) Flag
INR Increment Specified Byte by One
DCR Decrement Specified Byte by One
INX Increment Register Pair by One
DCX Decrement Register Pair by One
DAD Double Register Add; Add Content of Register Pair to H & L
Register Pair
73
80
85
Instru
ctio
n S
et
![Page 74: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/74.jpg)
SUMMARY LOGICAL GROUP
This group performs logical (Boolean) operations on data in registers and memory and on condition flags.
These instructions enable you to set specific bits in the accumulator ON or OFF.
ANA Logical AND with Accumulator
ANI Logical AND with Accumulator Using Immediate
Data
ORA Logical OR with Accumulator
OR Logical OR with Accumulator Using Immediate
Data
XRA Exclusive Logical OR with Accumulator
XRI Exclusive OR Using Immediate Data
74
80
85
Instru
ctio
n S
et
![Page 75: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/75.jpg)
The Compare instructions compare the content of an 8-bit value with the contents of the accumulator;
CMP Compare
CPI Compare Using Immediate Data
The rotate instructions shift the contents of the accumulator one bit position to the left or right:
RLC Rotate Accumulator Left
RRC Rotate Accumulator Right
RAL Rotate Left Through Carry
RAR Rotate Right Through Carry
Complement and carry flag instructions:
CMA Complement Accumulator
CMC Complement Carry Flag
STC Set Carry Flag75
80
85
Instru
ctio
n S
et
![Page 76: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/76.jpg)
SUMMARY - BRANCH GROUP
Unconditional branching JMP Jump
CALL Call
RET Return
Conditions NZ Not Zero (Z = 0)
Z Zero (Z = 1)
NC No Carry (C = 0)
C Carry (C = 1)
PO Parity Odd (P = 0)
PE Parity Even (P = 1)
P Plus (S = 0)
M Minus (S = 1)
Conditional branching 76
80
85
Instru
ctio
n S
et
![Page 77: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/77.jpg)
SUMMARY - STACK
PUSH Push Two bytes of Data onto the Stack
POP Pop Two Bytes of Data off the Stack
XTHL Exchange Top of Stack with H & L
SPHL Move content of H & L to Stack Pointer
77
80
85
Instru
ctio
n S
et
![Page 78: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/78.jpg)
I/0 INSTRUCTIONS
IN Initiate Input Operation
OUT Initiate Output Operation
78
80
85
Instru
ctio
n S
et
![Page 79: EE 6502 UNIT-II PROGRAMMING OF 8085 ...UNIT-II PROGRAMMING OF 8085 MICROPROCESSOR Prepared by S.Sayeekumar , AP/RMDEEE 7 t 12 t 15 t PSW (Program Status word) - Flag unaffected * affected](https://reader030.vdocuments.us/reader030/viewer/2022013002/5e849ee3cb52ac2b38440de1/html5/thumbnails/79.jpg)
SUMMARY -MACHINE CONTROL
INSTRUCTIONS
EI Enable Interrupt System
DI Disable Interrupt System
HLT Halt
NOP No Operation
79
80
85
Instru
ctio
n S
et