Загрузка страницы

A to Z Character printing in Intel 8086 microprocessor using CMP instruction CODE in description

In this video i tried to print characters starting from A to Z in Intel 8086 8bit microprocessor assembly language. The task i very simple and achieved by defining a 8bit variable and increasing it and lastly comparing it by Z character's ASCII (American Standard Code for Information Interchange) Code. for the next step i had to add new line but it cause problem so i had to add carriage return characters ASCII (American Standard Code for Information Interchange) code. code is very simple i used CMP, INC, JNG instructions to achieve the task.

[CODE]

TITLE DISPLAY
.MODEL SMALL
.STACK 100H
.DATA
CHAR DB 'A'

.CODE
MAIN:
MOV AX, @DATA
MOV DS, AX



AGAIN:


MOV DL, CHAR
MOV AH, 02H
INT 21H

MOV DL, 0AH
MOV AH, 02H
INT 21H

MOV DL, 0DH
MOV AH, 02H
INT 21H

INC CHAR

CMP CHAR, 5AH
JNG AGAIN

EXIT:
MOV AH, 04CH
INT 21H
END MAIN

[/CODE]

code can also be downloaded here https://engineering-lab.blogspot.com/2020/03/A-to-Z-Character-printing-in-Intel-8086-microprocessor-using-CMP-instruction.html

Видео A to Z Character printing in Intel 8086 microprocessor using CMP instruction CODE in description канала The Lame Programmer
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 марта 2020 г. 20:06:37
00:05:42
Яндекс.Метрика