mirror of
https://github.com/stasenso/SHA256.git
synced 2026-06-26 21:32:43 +03:00
Инициализация
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
.vscode/tasks.json
|
||||||
|
main.obj
|
||||||
|
main.exe
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
global _main
|
||||||
|
extern _GetStdHandle@4
|
||||||
|
extern _WriteFile@20
|
||||||
|
extern _ExitProcess@4
|
||||||
|
|
||||||
|
section .text
|
||||||
|
_main:
|
||||||
|
; DWORD bytes;
|
||||||
|
mov ebp, esp
|
||||||
|
sub esp, 4
|
||||||
|
|
||||||
|
; hStdOut = GetstdHandle( STD_OUTPUT_HANDLE)
|
||||||
|
push -11
|
||||||
|
call _GetStdHandle@4
|
||||||
|
mov ebx, eax
|
||||||
|
|
||||||
|
; WriteFile( hstdOut, message, length(message), &bytes, 0);
|
||||||
|
push 0
|
||||||
|
lea eax, [ebp-4]
|
||||||
|
push eax
|
||||||
|
push (message_end - message)
|
||||||
|
push message
|
||||||
|
push ebx
|
||||||
|
call _WriteFile@20
|
||||||
|
|
||||||
|
; ExitProcess(0)
|
||||||
|
push 0
|
||||||
|
call _ExitProcess@4
|
||||||
|
|
||||||
|
; never here
|
||||||
|
hlt
|
||||||
|
message:
|
||||||
|
db 'Hello, World', 10
|
||||||
|
message_end:
|
||||||
Reference in New Issue
Block a user