MMAL LAB01 part_01 | Abir Kundu

Experiment Title: Introduction to 8086 Microprocessor Architecture & Assembly Language.

Objectives:
• To understand the architecture of the 8086 microprocessors.
• To familiarize with the EMU 8086 software environment.
• To write and execute a simple assembly language program.

Question/Lab Task:
Write an assembly program that initializes the AX register with the value 1234H and the
BX register with 0F12H. Then, add BX to AX and subtract 567H from the result. Store
the final result in the CX register.

Code:
CODE SEGMENT ; Start code segment
ASSUME CS:CODE, DS:CODE ; Set code and data segments to this code
ORG 100H ; Set code origin to 100H

MOV AX, 1234H ; Initialize AX with 1234H
MOV BX, 0F12H ; Initialize BX with 0F12H

ADD AX, BX ; Add BX to AX
SUB AX, 0567H ; Subtract 567H from AX

MOV CX, AX ; Store result in CX

HLT ; Stop program execution
END ; End of the program

Видео MMAL LAB01 part_01 | Abir Kundu канала Abir Kundu
Страницу в закладки Мои закладки ( 0 )
Все заметки Новая заметка Страницу в заметки