Question

Write a program in 8086 assembly language that accept a string from the keyboard and then reverses a string using stack. The string can be assumed to be available in the data segment. The results are also to be created in the data segment.

30 Nov 2017
Answer :
Word Count : 490

To write a program in 8086 assembly language that accepts a string from the keyboard and then reverses it using a stack, you can follow these steps:

```assembly
.model small
.data
    input_buffer db 255 DUP('$')  ; Input buffer to store the string
    output_buffer db 255 DUP('$') ; Output buffer to store the reversed string
    newline db 0Dh, 0Ah, '$'      ; Newline character
    stack db 255 DUP('$')         ; Stack to store characters
    top db 0                      ;

_________ ___ ________ ______ ____ __________ _________ _________ ________ _____.
_________ __________ ________ _______ ______ _______.
________ ________ ___ _________ _______.
________ _________ _______ _________ ______.
__________ ______ ____ _________ __________ ___ __________ ________ ___ _______.
_____ ____ _________ _______ ___ _____ ___ _________ ______ ________.
____ ______ ________ ___ _______.
________ _______ _________ ______ __________ _________.
_____ __________ _____ ____ _______ ____ ________ ____ _______ __________ _____ _______.
_____ __________ ______ ____ _________ _______ __________ _______ _______ ________ ________ _________.
______ _________ _____ ______ __________.
________ ___ ________ _______ _______ ____ _________ ______ ___.
___ ________ ________ ____ _________ ____ ______.
________ _________ __________ ___ _______ ___ _______ _____.
____ _____ _____ ____ ___.
_________ ______ __________ _______ ________ ______ ________ ______ ____ __________.
_________ ____ ________ _______ ________ _____.
__________ _____ __________ ________ ___ ________ ________ ____.
_______ ________ ______ ___ ________ ______ ______ __________ _________ _______ ________ ___.
_________ ___ ____ __________ __________ ______ _____ ____ _________ ______.
____ ___ __________ ________ __________.
__________ _______ ___ ____ _________ ___ ______ ________ __________.
_________ _________ _________ ______ _______ __________ ______.
____ ________ _______ ________ _________ _________ _____ ____ ______ _________ _________ __________.
________ ___ _______ __________ ________ _____ ____ ________ ____ ______ _____.
______ _________ ________ __________ __________.
_______ ____ _______ ________ _________ ______ ______ _____ _______ ____ ___ __________.
___ ____ __________ ______ _______ ___ ____ _____ ________ ________.
_______ ____ _____ _______ ________ ________ __________ ______ _______ ________ ___ _____.
________ ________ __________ ________ _____ _______ _____ __________ ________ _________ ______ ___.
________ _____ ______ _____ _______ ___ _______ _________ _______ ___ ________ ___.
____ _____ _____ ____ ___ _______ ________ ___ __________ __________ _____ __________.
______ _____ __________ ________ ___ ________ _______ ___ _______ _____.
__________ ____ ________ ____ ___ ______ __________ ____ __________ ______ _______.
_____ ________ ___ ____ ___ ________ _________ ____ __________ ___ ____.
_____ _____ _____ _____ ________ ______ _____ _________ ____.
_____ _______ ___ __________ _________ ________.
___ __________ _____ _______ ______ ________ ___ ____.
______ ________ __________ _____ _______ ________.
_______ ______ ________ _____ ______.
__________ ____ ______ ______ ________ ______ ________ ___ ________.
_____ _______ _______ ______ _______.
______ ______ ________ ____ ____ __________ __________ ______.
________ ______ ________ _____ ______ _____ ________ _____ ______ ____ __________.
____ ____ ______.
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 MCSL 17 2010 - Write a program in 8086 assembly language that accept a string from th | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→