0% found this document useful (0 votes)
18 views

Lab3 Msi

The document contains examples of assembly language instructions for addition, subtraction, carry, increment, decrement, negation, multiplication, and division on 8-bit and 16-bit registers. It also includes examples of multiple register operations like addition, multiplication, and division.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Lab3 Msi

The document contains examples of assembly language instructions for addition, subtraction, carry, increment, decrement, negation, multiplication, and division on 8-bit and 16-bit registers. It also includes examples of multiple register operations like addition, multiplication, and division.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Addition:-

MOV AX, 0F864H


MOV BX, 0E984H
ADD AX, BX
HLT

Carry gets changed:-


MOV AX, 0F864H
MOV BX, 0E984H
ADD AX, BX
ADC CX, DX
HLT

Subtract:-
MOV AX, 0F864H
MOV BX, 0E984H
SUB AX, BX
HLT

MOV AX, 0F864H


MOV BX, 0E984H
SUB AX, BX
SBB CX, DX
HLT

MOV AX, 0F864H


MOV BX, 0E984H
SUB AX, BX
MOV CX, 4
MOV DX, 2
SBB CX, DX
HLT

Incrimant:-
MOV AX, 8
INC AX
HLT

Decrimant:-
MOV AX, 8
DEC AX
HLT

2’s complimant:-
MOV AX, 3
NEG AX
HLT

Multiply:-
8-bit multiplication:-
MOV AL, 230
MOV BL, 165
MUL BL
HLT

16-bit multiplication:-
MOV AX, 56
MOV BX, 128
MUL BX
HLT

LAB TASK-2:-
MOV AX, 1254
MOV BX, 0B812H
MOV CX, 9067
MOV DX, 0ADC3H
ADD AX, BX, CX, DX
MOV DI, AX
HLT

LAB TASK-3:-
MOV AH, 12
MOV BH, 12
MUL BH
MOV DX, 0AH
HLT

LAB TASK-5:-
MOV AL, 7
MOV DL, 7
MUL DL
MUL DL
HLT

LAB TASK-6:-
MOV AL, 2
MOV BH, 4
MUL BH
MOV DL, 2
DIV DL
HLT

LAB TASK-8:-
MOV AH, 10
MOV AL, AH
MOV BH, 9
MUL BH
MOV DL, 5
DIV DL
MOV CX, 32
ADD AX, CX
HLT

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy