From 23a93da08853cb0103c591b6ea04c86120c3678a Mon Sep 17 00:00:00 2001 From: serr Date: Sun, 16 Feb 2025 14:14:46 +0300 Subject: [PATCH] getinput: get_string -> get_string_stdin --- getinput/echo.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getinput/echo.asm b/getinput/echo.asm index d722362..7ad1131 100644 --- a/getinput/echo.asm +++ b/getinput/echo.asm @@ -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 байта под символ и нуль-терминатор