Top Banner
 UNIT II Implementing standard program structures in 8086 assembly lang uage Simple sequence programs 1.Program for 8-bit Arithmetic operations: PROGRAM: ASSUME CS: CODE, DS: DATA DATA SEGMENT N1 EQU 04H N2 EQU 06H RESULT DB 06H DUP (00) DATA ENDS CODE SEGMENT START: MOV AX, DATA MOV DS, AX MOV AL, N1 MOV BL, N2 ADD AL, BL MOV [RESULT], AL MOV AL, N1 SUB AL, BL MOV [RESULT+1], AL MOV AL, N1 MUL BL MOV [RESULT+2], AL MOV [RESULT+3], AH MOV AL, N1 MOV AH, 00H DIV BL MOV [RESULT+4], AL MOV [RESULT+5], AH MOV AH, 4CH INT 21H CODE ENDS END START 2. Program for 1 6-bit Arithmetic operations: PROGRAM: ASSUME CS: CODE, DS: DATA DATA SEGMENT N1 EQU 8888H N2 EQU 4444H DATA ENDS
10

MP & MC UNIT II notes.pdf

Jun 04, 2018

Download

Documents

lakshmanakiran
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 1/10

Page 2: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 2/10

Page 3: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 3/10

Page 4: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 4/10

Page 5: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 5/10

Page 6: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 6/10

Page 7: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 7/10

Page 8: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 8/10

Page 9: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 9/10

Page 10: MP & MC UNIT II notes.pdf

8/14/2019 MP & MC UNIT II notes.pdf

http://slidepdf.com/reader/full/mp-mc-unit-ii-notespdf 10/10