Show a string in assembly language, Computer Engineering

Assignment Help:

Q. Show a string in assembly language?

MOV AH, 09H

MOV DX, OFFSET   BUFF

INT    21H

Here data in input buffer stored in data segment is intended to be displayed on monitor.

A complete program: 

Input a letter from keyboard and respond.  "The letter you typed is ___".

CODE SEGMENT 

; set the DS register

                        MOV AX, DATA

                        MOV DS, AX

; Read Keyboard

                        MOV AH, 08H

                        INT   21H

; Save input

                        MOV BL, AL

; Display first part of Message

                        MOV AH, 09H

                        MOV DX, OFFSET MESSAGE

                        INT 21 H

; Display character of BL register

                        MOV AH, 02H

                        MOV DL, BL

                        INT 21 H

; Exit to DOS

                        MOV AX, 4C00H

                        INT 21H

CODE ENDS

DATA SEGMENT

MESSAGE DB "The letter you typed is $"

DATA ENDS

END.


Related Discussions:- Show a string in assembly language

Hat are the advantages and disadvantages of hardwired, What are the advanta...

What are the advantages and disadvantages of hardwired and micro programmed control? Advantages of hardwired control i. Operate at high speed ii Each state of this coun

Usability test of website, For this part of your assessment you are require...

For this part of your assessment you are required to prepare and conduct a usability test of the website that you have chosen to review from Part A . You must design the script,c

What are the kernel threads, What are the Kernel threads Kernel threads...

What are the Kernel threads Kernel threads are supported directly by the operating system .Thread creation; scheduling and management are done by the operating system. Thus the

Combinational logic, At a particular moment in time the output of a COMBINA...

At a particular moment in time the output of a COMBINATIONAL logic circuit depends uponthe inputs to the circuit at the same instant.(Unlike sequential logic circuits where the out

Explain scripts and libraries introduction, Scripts A script within Rati...

Scripts A script within Rational Robot is a file that haves a sequence of SQABasic code. The extension of the file is always ".REC". Typically the script have an automated testc

Bidirectional search, Bidirectional Search: We've concentrated so far ...

Bidirectional Search: We've concentrated so far on the searches where the point of view for the search is to find a solution, but not the path to the solution. Like any other

Determine a sample rate required for telephone conversation, A sample rate ...

A sample rate of            is required for a good quality representation of telephone conversation. A sample rate of 50 times/second /mile of distance travelled are needed fo

States briefly the generic framework for e-commerce, States briefly the gen...

States briefly the generic framework for e-commerce. Generic framework of e-commerce comprises the Applications of e-commerce (as like banking, shopping within online stores an

Visibility, hidden edge/surface removal

hidden edge/surface removal

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd