master
serr 2025-02-15 19:43:49 +03:00
parent 8effa14006
commit 7d6aa46a88
2 changed files with 3 additions and 2 deletions

View File

@ -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 \

View File

@ -1,3 +1,4 @@
; Выведет 'Hello, Sailor!' и тут же завершится
format PE
entry start