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

Explain loop level of parallel processing, Loop Level At this stage, fo...

Loop Level At this stage, following loop iterations are candidates for parallel execution. Though, data dependencies among subsequent iterations can restrict parallel execution

How to reduce total amount of disk space in ftp, Q. How to reduce total amo...

Q. How to reduce total amount of disk space in FTP? FTP service compress files to reduce total amount of disk space the files require. Before transferring a file user should te

What is the pcm pulse or symbol transmission rate, An analog information si...

An analog information signal, whose maximum frequency is 6000Hz, is to be transmitted using a PCM system. The quantization error must not exceed the ±1 % of the peak-topeak analog

Using information in information system, Using Information in Information S...

Using Information in Information System Information Systems can be thought of as being useful at three levels:  The detail level where information is used to carry out disc

i open an ms access database, How can I open an MS Access database that ha...

How can I open an MS Access database that has been converted to a current version? Ans) MS Access is not backwards compatible. A workaround to share tables among different versi

E-R DIAGRAM, In academic year a researcher can either be employed as a prof...

In academic year a researcher can either be employed as a professor or a lab assistant.there are three kinds of professors: assistant,associate and full professors.drow E-R DIAGRAM

Determine the advantages of bcd adder, Determine the advantages of BCD Adde...

Determine the advantages of BCD Adder Now let us see the arithmetic addition of two decimal digits in the BCD, with a possible carry from previous stage. As each input digit do

Instruction issue degree, Instruction Issue degree : The major concept in s...

Instruction Issue degree : The major concept in superscalar processing is how many instructions we can issue per cycle. If we issue k number of instructions per cycle in a supersca

Self knowledge - characteristics of an experts system, An experts system ...

An experts system has knowledge that lets it reason about its own operations plus a structure that simplifies this reasoning process. For example if an expert system

DFD, Draw the Context level DFD for the Safe home Software.

Draw the Context level DFD for the Safe home Software.

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