
| Arquivo: xpath.bat |
| set c_cpp=C:\msys64\ucrt64\bin set path=%c_cpp%;%path% |
| xpath |
| Arquivo: teste.c |
| #include <stdio.h> int main(int argc, char **argv){ printf("Hello World"); return 0; } |
| Arquivo: xpath.bat |
| set asm=C:\msys64\usr\bin set path=%asm%;%path% |
| xpath |
| Arquivo: teste.asm |
| bits 64 default rel section .rdata hello: db `Hello World\r\n` hello_len equ $ - hello section .text extern __imp_GetStdHandle extern __imp_WriteConsoleA extern __imp_ExitProcess global _start _start: sub rsp,32 mov ecx,-11 call [__imp_GetStdHandle] mov rcx,rax lea rdx,[hello] mov r8d,hello_len xor r9,r9 push 0 call [__imp_WriteConsoleA] xor ecx,ecx call [__imp_ExitProcess] ; Nunca chegará aqui! |