Clean up Assembly files (#1003)

This commit is contained in:
MrBrain295
2021-05-08 09:57:36 -05:00
committed by GitHub
parent 45856bf57b
commit 7f7369291b
20 changed files with 174 additions and 196 deletions

View File

@@ -15,19 +15,19 @@ bytesWritten DWORD ?
.code
main PROC
sub rsp, 5 * 8 ; reserve shadow space
sub rsp, 5 * 8
mov rcx, -11 ; nStdHandle (STD_OUTPUT_HANDLE)
mov rcx, -11
call GetStdHandle
mov rcx, rax ; hConsoleOutput
lea rdx, msg ; *lpBuffer
mov r8, LENGTHOF msg - 1 ; nNumberOfCharsToWrite
lea r9, bytesWritten ; lpNumberOfCharsWritten
mov QWORD PTR [rsp + 4 * SIZEOF QWORD], 0 ; lpReserved
mov rcx, rax
lea rdx, msg
mov r8, LENGTHOF msg - 1
lea r9, bytesWritten
mov QWORD PTR [rsp + 4 * SIZEOF QWORD], 0
call WriteConsoleA
mov rcx, 0 ; uExitCode
mov rcx, 0
call ExitProcess
main ENDP
END