I use MASM and RadAsm-IDE for learning assembler.
This is the example, print "hello world":
; 1.asm ; display hello world!! .386 ;using 386 family .model flat, stdcall option casemap:none ;case sensitive include windows.inc include kernel32.inc includelib kernel32.lib include user32.inc includelib user32.lib .data ; data begin MsgBoxCaption db "Coba test ASM!..:)",0 MsgBoxText db "Hello World!",0 .code ; code begin start: invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK invoke ExitProcess, NULL ; exit process end start ; end of code
then, run, yield like this:
0 comments:
Post a Comment