How do I save a string? Say I type in "sfrider0." How do I store that then retrieve it later? I've been messing around with it for a while and the most I can get it to do is tell me how many characters are in it. Any help?
Jump to Post
; you have to allocate enough memory for the string in the ".data?" ; section:
szBuff db 256 dup(?)
; then when you call StdIn it will write user input into szBuff
.386 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\masm32.inc includelib …
All 4 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.