Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:54:41+00:00 2026-06-04T10:54:41+00:00

I want to create a program that takes in input and prints out the

  • 0

I want to create a program that takes in input and prints out the result, but I can’t create an empty variable that can take a string input. Here is what I mean:

.data 
        emptyvar db ???? ; I don't know what to do here
.data? 
        buffer dd 100 dup(?)
.code
start:
        lea eax, buffer
        push eax
        call StdIn ; get input
        ; NOW HERE IS WHAT I DON'T KNOW WHAT TO DO:
        ; I know have input, what I want to do is print that result. But where 
        ; do I store the input and how do I print the result?

I know that I can store an integer in an empty variable, and I could print that, but how can I create an empty string variable?

Any help would be greatly appreciated,

Regards,

Progrmr

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:54:43+00:00Added an answer on June 4, 2026 at 10:54 am
    .386
    .model flat,stdcall
    option casemap:none
    
    include     \masm32\include\windows.inc
    include     \masm32\include\kernel32.inc
    include     \masm32\include\masm32.inc
    includelib  \masm32\lib\kernel32.lib
    includelib  \masm32\lib\masm32.lib
    
    
    .data
    msg1 db 'Please type your name',13,10,0
    msg2 db 'Nice to see you ',0
    
    .data?
    buffer db 100 dup(?)
    .code
    
    start:
    invoke StdOut,ADDR msg1
    invoke StdIn,ADDR buffer,100 ; receive text input
    invoke StdOut,ADDR msg2
    invoke StdOut,ADDR buffer
    invoke ExitProcess,0
    END start
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a program that will take user input and create a
I created one GWT webapplication project.Inthat i want to create servlet program,but in that
I want to create a program that runs on iPads, Playbooks, and Windows computers
I want to create a program that produces an executable slideshow. So I need
I want to create an extremely simple iPhone program that will open a telnet
I want to create a MSWindows Python program that would launch a new Firefox
I want to create a program which calculates how long it will take to
I have several scripts that take as input a directory name, and my program
I have created a program that takes a users input of a bunch of
I am writing a program that can take in either 3 ints, or 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.