Question

Write and run a program using 8086 assembly language that prints the ASCII character for a 8-bit value stored in BL register.

12 Sep 2025
Answer :
Word Count : 975
In Assembly Language Programming Lab, working with the 8086 microprocessor provides a hands-on understanding of low-level programming concepts, such as registers, memory addressing, and interaction with hardware through instructions. Writing and running a program that prints the ASCII character for an 8-bit value stored in the BL register involves a combination of understanding data representation, character encoding, and BIOS or DOS interrupt services. The 8086 microprocessor has a variety of registers, with general-purpose registers like AX, BX, CX, and DX, each of which can be split into 8-bit high and low parts. For instance, the BX register is a 16-bit register that can be divided into BH (high byte) and BL (low byte). In this program, the BL register stores the 8-bit value whose ASCII equivalent needs to be printed. ASCII, which stands for American Standard Code for Information Interchange, is a standard encoding system where each number from 0 to 127 corresponds to a specific character. Therefore, if the BL register contains a value between 48 and 57, it represents digits ‘0’ to ‘9’, while values from 65 to 90 correspond to uppercase letters ‘A’ to ‘Z’ and 97 to 122 correspond to lowercase letters ‘a’ to ‘z’. Printing a character from its ASCII value requires sending this value to the appropriate output device, such as the screen, which can be achieved using DOS interrupts. DOS provides a simple interface for printing characters through software interrupts, specifically interrupt 21h. The function 02h of interrupt 21h allows printing a single character to the standard output, which is typically the screen. To use this function, the ASCII character to be printed must be loaded into the DL register, as the interrupt routine reads the value from DL. Since the BL register contains the value we want to print, the program first transfers the contents of BL into DL using the MOV instruction. This ensures that the correct value is passed to the interrupt function. The structure of an 8086 assembly language program begins with specifying the code segment and the data segment.
_____ ________ _____ _________ ______ ____ ____ ________ _________.
________ ________ ______ _______ ____ __________ ______ ____.
____ __________ __________ _____ _________ ___ ______ ____ __________ _________.
________ __________ _______ ____ __________ ________ _________ ________ __________.
_________ _________ ________ _________ _________ __________ _________ ______.
______ ________ ________ _____ ______ ___ _______ ____ ___ ____.
______ ____ _________ ____ __________ ______ ______ _________ _________ __________.
__________ __________ ___ ________ ________ _____ ____ _______ _______ ___ __________ ____.
__________ _________ _______ ________ __________ _______ _________ ___ ________.
__________ ____ _________ ___ _________.
___ _______ __________ _________ _________.
__________ ___ _________ ______ ________ ___ ______ _______ ____.
______ __________ _______ ___ _______.
________ ___ ________ ____ _______.
_________ _____ __________ _____ _____ _____ ___.
___ ___ ________ _________ _______ ________ ________ _______ ________.
____ ____ ____ __________ _________ ____ ____ ______ ______ _______ ________ ________.
_______ _____ __________ ____ __________ ____ __________ _________.
_______ _______ ___ _______ _______ ____ ____ _____ __________ ______ _______.
_______ ________ __________ _____ ________ ________ ___ ______.
____ _____ ___ _____ ____ __________ ________ _______ ____ ____ ________ _____.
______ _________ _____ ______ _________ __________ __________ ____ ____ _____ __________.
_________ _____ ___ ____ _________ _______ _______ _________ _____.
_____ __________ ____ ______ ____.
_________ _________ _________ ________ ______ ________ ____ ________ _____ _________ _________ ____.
_________ ________ _______ ______ _____ ___ _________ ____.
______ _________ _____ __________ ___ ____ __________ ________ ________ _______.
____ _________ ________ _______ _______ _______ ______ ____ ___ _______.
_______ ____ ______ ___ ___ ___ __________.
________ ______ _________ ____ ________ ___ ____ _______ ____ ___ _______.
_________ ____ __________ _______ ____ ___ __________ _______.
_____ _______ ____ ___ ________ ______ ______ ___ ____.
___ ________ _______ _____ ________ _______ _____ ______ ______ ________ ___ ______.
___ ____ _____ ______ ___ _____ ______ ____ ___.
__________ ______ ______ _______ _____ ___ ______ _________.
____ _______ ___ ____ _________ _________ _____ ______ ____ ________ _____.
____ ___ _______ _______ _________ __________ __________.
_______ ____ ___ _________ ___ _________ ________ _____ _______ ______.
______ ___ ___ ____ ________ _______ _________ _________ _______ ___.
_____ __________ ______ __________ __________.
______ _______ _______ __________ ____ _________.
_____ ___ _________ _________ __________ _______.
__________ _______ ___ _____ _________ ____ _______.
______ ___ _______ _________ __________ _______.
_______ __________ ________ ____ ___ ________ _______ __________.
______ ___ ________ ____ __________ ________ ______.
_____ __________ ____ ___ ________ ____ ___ ___.
_______ __________ _______ ________ _______ __________ _______ _______.
______ _______ ________ ______ _________ ____.
________ _____ ____ ________ _________ _____ _______ ________.
______ ___ ________ _____ ________ _____ ________ ________ __________ _______.
______ _________ ___ ________ _________ __________ ____ ________ ____ ______.
________ ______ _______ _________ _______ ________ ____ ____ ______.
_____ _______ __________ __________ _________ ________ _____ __________ ________.
___ ____ _____ __________ ____ _______ ____ ____ ___ ________.
_____ _____ __________ ______ _____.
___ __________ __________ ______ _________ ___ ________ _____ _____ ____.
________ ________ ______ __________ ___ _________ ______ __________ __________ __________ ___.
__________ _________ _______ ______ __________ ________.
________ _____ _____ _________ _________ __________.
__________ ____ _______ ______ ____.
_______ ____ _______ _______ _______ ________ ________ ________ __________ ___.
_______ _________ __________ ___ _________ ___ _________.
___ ___ _________ _________ ___.
_____ _________ ____ ____ _________ ____ ____ _____ _____ _________ _____.
_____ _______ ___ ________ __________ _________ ____ _________ __________ ________ _______.
______ _________ ______ ____ _____ ________.
________ _____ ___ ___ __________.
_______ ____ _______ ____ _________.
_____ ____ ________ ____ _______ ___ ____ ______ __________ ___ ________.
_________ _____ ____ _____ _________ ____ _________ ________ ___ ________ ____.
________ _____ ______ _____ _________.
___ _____ ______ _____ _______ ___ ________ ________ __________.
________ _______ _____ __________ ____ __________ ______ _____ ________ _____.
___ _________ ____ _________ _______ ___ __________ _________ ___.
_________ _________ ____ ___ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU BCSL 22 2025 2026 - Write and run a program using 8086 assembly language that prints the A | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→