0% found this document useful (0 votes)
8 views4 pages

Microprocessor-Lab (1) (2)

The document contains a series of assembly language programs for a microprocessor lab, each with a specific set of instructions, opcodes, and addresses. Programs include operations such as moving data between registers, arithmetic operations, and memory manipulation. Each program concludes with a halt instruction (HLT) to terminate execution.

Uploaded by

Tanmoy Datta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Microprocessor-Lab (1) (2)

The document contains a series of assembly language programs for a microprocessor lab, each with a specific set of instructions, opcodes, and addresses. Programs include operations such as moving data between registers, arithmetic operations, and memory manipulation. Each program concludes with a halt instruction (HLT) to terminate execution.

Uploaded by

Tanmoy Datta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Microprocessor Lab

PROGRAM-1

Address Opcode Mnemonic


400 B8 34 12 MOV AX, 1234H
403 8B F0 MOV SI , AX
405 05 21 43 ADD AX, 4321H
408 89 04 MOV [SI] , AX
40A F4 HLT

PROGRAM-2

Address Opcode Mnemonic


400 B8 34 12 MOV AX,1234H
403 BB 21 43 MOV BX,4321
406 8A C8 MOV CL,AL
408 8A EC MOV CH,AH
40A 8A D3 MOV DL,BL
40C 8A F7 MOV DH,BH
40E 02 CA ADD CL,DL
40G 02 EE ADD CH,DH
40I F4 HLT

Program 3

Address Opcode Mnemonic


400 B8 34 12 MOV AX,1234H
403 8A C8 MOV CL,AL
405 8A EC MOV CH,AH
407 02 CD ADD CL,CH
409 8A D1 MOV DL,CL
40B 8B F2 MOV SI,DX
40D 89 14 MOV [SI],DX
40F F4 HLT

PROGRAM -4

Address Opcode Mnemonic


401 B0 0C MOV AL,12D
403 B3 0A MOV BL,10D
405 F6 F3 DIV BL
407 8A C8 MOV CL,AL
409 8A D4 MOV DL,AH
40B F4 HLT

PROGRAM -5

Address Opcode Mnemonic


400 B0 0C MOV AL,12D
402 B3 0A MOV BL,10D
404 F6 F3 DIV BL
406 8A C8 MOV CL,AL
408 8A D4 MOV DL,AH
40A 02 CA ADD CL,DL
40C 8A F9 MOV BH,CL
40D B8 00 00 MOV AX,00H
40G B9 00 00 MOV CX,00H
40J B0 22 MOV AL,34D
40L B1 0A MOV CL,10D
40N F6 F1 DIV CL
40P 8A D0 MOV DL,AL
40R 8A F4 MOV DH,AH
40T 02 FA ADD BH,DL
40V B8 00 00 MOV AX,00H
40Y 8A C7 MOV AL,BH
F6 E6 MUL DH
F4 HLT

PROGRAM-6

Address Opcode Mnemonic


400 B8 1E 00 MOV AX,30D
403 B3 09 MOV BL,09D
405 F6 E3 MUL BL
407 B5 05 MOV CH,05D
409 F6 F5 DIV CH
40B BA 20 00 MOV DX,32D
40E 03 C2 ADD AX,DX
40G 8B D0 MOV DX,AX
40I B8 00 00 MOV AX,00D
40L BB 00 00 MOV BX,00D
40O B9 00 00 MOV CX,00D
40R B8 1E 00 MOV AX,30D
40U B9 11 01 MOV CX,273D
40X 03 C1 ADD AX,CX
40Z 8B D8 MOV BX,AX
F4 HLT

PROGRAM-7

Address Opcode Mnemonic


400 BE 00 05 LEA SI,[500H]
403 BF 50 05 LEA DI,[550H]
406 B9 03 00 MOV CX,0003H
409 FC CLD
40A F3 REPE
40B A6 CMPSB
JNE 007H
B0 01 MOV AL,01H
A2 00 06 MOV [600H],AL
B0 00 MOV AL,00H
A2 00 06 MOV [600H],AL
F4 HLT
PROGRAM-8

Address Opcode Mnemonic


400 BE 00 05 MOV SI,500H
403 BF 00 06 MOV DI,600H
406 B9 0F 00 MOV CX,000FH
409 8B 04 MOV AX,[SI]
40A 89 05 MOV [DI],AX
40C 46 INC SI
40D 47 INC DI
40E 49 DEC CX
40F 75 12 JNE 20
40H F4 HLT

PROGRAM -9

Address Opcode Mnemonic


400 B0 75 MOV AL,75H
402 B3 46 MOV BL,46H
404 2A C3 SUB AL,BL
406 2F DAS
407 A2 50 04 MOV [450H],AL
409 F4 HLT

PROGRAM-10

Address Opcode Mnemonic


400 B0 0F MOV AL,0FH
402 A2 01 05 MOV [501H],AL
405 B0 25 MOV AL,25H
407 A2 00 05 MOV [500H],AL
40A B0 67 MOV AL,67H
40C B3 30 MOV BL,30H
40E 20 06 01 05 AND [501H],AL
40I 00 1E 01 05 ADD [501H],BL
40M 22 06 00 05 AND AL,[500H]
40Q D0 C8 ROR AL,01H
40S D0 C8 ROR AL,01H
40U D0 C8 ROR AL,01H
40W D0 C8 ROR AL,01H
40Y 02 C3 ADD AL,BL
A2 00 05 MOV [500H],AL
F4 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