getinput: get_string -> get_string_stdin

master
serr 2025-02-16 14:14:46 +03:00
parent 8aa538f78e
commit 23a93da088
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ section '.code' code readable executable
start:
invoke printf, usage
invoke printf, req
call get_string
call get_string_stdin
invoke printf, resp, eax
pop ebx
pop eax
@ -17,7 +17,7 @@ start:
invoke ExitProcess, 0
; Функция, считывающая строку любой длины из консоли
get_string:
get_string_stdin:
push ebp ; указатель на начало стека в ebp
mov ebp, esp ; новый epb - esp
invoke malloc, 2 ; аллоцирую изначально 2 байта под символ и нуль-терминатор