From 7d6aa46a88427487da2db32e7f18bda096bc43de Mon Sep 17 00:00:00 2001 From: serr Date: Sat, 15 Feb 2025 19:43:49 +0300 Subject: [PATCH] new --- getinput/echo.asm | 4 ++-- hellosailor/hello.asm | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/getinput/echo.asm b/getinput/echo.asm index 577e17e..b59c407 100644 --- a/getinput/echo.asm +++ b/getinput/echo.asm @@ -1,3 +1,4 @@ +; Выведит строку, которую ты ввел, память под строку выделяется динамически на куче format PE console entry start include '%FASMINC%\WIN32A.INC' @@ -57,8 +58,7 @@ start: section '.data' data readable writeable usage db 'This is a test echo program written in FASM, outputting to you the string you entered. Works with strings of any length!', 10, 10, 0 req db 'TEXT: ', 0 - resp db 10, 'ECHO: %s', 10, 0 - newline db 10, 0 + resp db 10, 'ECHO: %s', 10, 'Press any button to exit: ', 0 section '.idata' import data readable library \ diff --git a/hellosailor/hello.asm b/hellosailor/hello.asm index aed58b7..b74dfd1 100644 --- a/hellosailor/hello.asm +++ b/hellosailor/hello.asm @@ -1,3 +1,4 @@ +; Выведет 'Hello, Sailor!' и тут же завершится format PE entry start