| | |
store input in string
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 23
Reputation:
Solved Threads: 2
; you have to allocate enough memory for the string in the ".data?" ; section:
.data?
szBuff db 256 dup(?)
; then when you call StdIn it will write user input into szBuff
.data?
szBuff db 256 dup(?)
; then when you call StdIn it will write user input into szBuff
Assembly Syntax (Toggle Plain Text)
.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 \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib includelib \masm32\lib\masm32.lib .data? szBuff db 256 dup(?) .data .code start: call AllocConsole push sizeof szBuff push offset szBuff call StdIn push offset szBuff call StdOut push NULL call ExitProcess end start
![]() |
Similar Threads
- string array issues with storing input (beginner) (C++)
- Constructing a multi-dimensional array using a dilimited string input. (PHP)
- problem in dynamic input for string (C++)
- password input (C++)
- Still need help with opening a file and store the data on it in an array (C++)
- Storing file input to an array? (C)
- Desperate and eagar to learn!!! (C++)
- Display Longest and Shortest Word in a String (C++)
- LaTeX in JTextField (Java)
- Please help me compare strings (Java)
Other Threads in the Assembly Forum
- Previous Thread: PCSpim/Assembly HELP
- Next Thread: EXE file question
| Thread Tools | Search this Thread |





