new
parent
8effa14006
commit
7d6aa46a88
|
@ -1,3 +1,4 @@
|
||||||
|
; Выведит строку, которую ты ввел, память под строку выделяется динамически на куче
|
||||||
format PE console
|
format PE console
|
||||||
entry start
|
entry start
|
||||||
include '%FASMINC%\WIN32A.INC'
|
include '%FASMINC%\WIN32A.INC'
|
||||||
|
@ -57,8 +58,7 @@ start:
|
||||||
section '.data' data readable writeable
|
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
|
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
|
req db 'TEXT: ', 0
|
||||||
resp db 10, 'ECHO: %s', 10, 0
|
resp db 10, 'ECHO: %s', 10, 'Press any button to exit: ', 0
|
||||||
newline db 10, 0
|
|
||||||
|
|
||||||
section '.idata' import data readable
|
section '.idata' import data readable
|
||||||
library \
|
library \
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
; Выведет 'Hello, Sailor!' и тут же завершится
|
||||||
format PE
|
format PE
|
||||||
entry start
|
entry start
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue