Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Lab3 Msi

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 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