array of strings
Input and display a string from an array in assembly using nasm « on: June 02, 2014, 01:56:59 AM » The following code runs, however, any character entered is displayed with the same symbol (an o shape underlined?). Read a string from user input. If the string is 'quit' or 'exit' (case insensitive), exit the program. If the string is empty, go to step 1. Call Subprogram 1 to reverse the words in the string, passing the following two parameters to the subprogram via the stack. (1) The start address of the string. (2) The start address where the string with. Write an assembly program to READ YOUR NAME AND DISPLAY IT IN NEWLINE title read and display name dosseg.model small.stack 100H.code main proc mov ax, @data; initialize ds register mov ds, ax mov ah, 09h; display message1 mov dx, offset msg1 int 21h mov ah, 0ah; read string mov dx, offset string int 21h mov alt, 09h; your name is mov dx.
array of strings
Assembly Language Program To Read A String And Display The Value
I am using the book 'assembly language for intel based computers'(MASM) new version.
I writing a program in 32-bit.
I have a question on this.
My program reads a string(user input) every time store it in an array. and display that array end of the program. how to declare that string array and store those strings in that array and display that array at the end of the program.
The program must use a procedure for this
how to do this.If any body knows this help me.
thanks.