i try echo memory location
but result is not char...
how to solve this problem??
assembly is really funny
like a return to the beginning of time to learn
==============================================
STD_OUTPUT_HANDLE EQU -11
NULL EQU 0
GLOBAL GobleyGook
EXTERN ExitProcess, GetLastError, GetStdHandle, WriteConsoleA, WriteConsoleOutputA, FormatMessageA
SECTION .data
msg DB "Hello World!", 13, 10, "M", 0
msg.len EQU $ - msg
SECTION .bss
dummy RESD 1
text RESD 1
SECTION .text
GobleyGook:
PUSH STD_OUTPUT_HANDLE
CALL GetStdHandle
MOV DWORD[text], msg
PUSH NULL
PUSH dummy
PUSH 16
PUSH text
PUSH eax
CALL WriteConsoleA
PUSH NULL
CALL ExitProcess
On Windows 8 use golink
nasm -f win32 print2.asm
golink.exe /console /entry GobleyGook print2.obj kernel32.dll