General > The Campus

My first Project with MASM32 !

(1/1)

Juliano de la SMK:
hello everyone !

today, i launch me to the code in assembler with MASM32 !
i speak french and i don't understand this tutorial : https://www.youtube.com/watch?v=DT8qW8zEHc4

because i want to explain me this msgbox code source line by line :


--- Code: ---.386
.model flat,stdcall
option casemap:none
 
    include         \masm32\include\windows.inc   
 
    include         \masm32\include\masm32.inc
    includelib      \masm32\lib\masm32.lib
 
    include         \masm32\include\kernel32.inc
    includelib      \masm32\lib\kernel32.lib
 
    include         \masm32\include\user32.inc
    includelib      \masm32\lib\user32.lib
 
 
.data
 
    szMessageText       DB  "Hello, i am a message box.", 0
    szMessageCaption    DB  "New Window !", 0
 
 
.code
 
ep_start:
 
    Invoke MessageBox, NULL, ADDR szMessageText, ADDR szMessageCaption, MB_OK
 
    Invoke ExitProcess, NULL
 
end ep_start

--- End code ---

Thank you for your replies,
Juliano de la SMK.

hutch--:
Congratulations Juliano  :t

Kenozeed:
I will try to use code. Thank you for coming

Mikl__:
Hi, Juliano de la SMK!

--- Code: ---    include         \masm32\include\windows.inc   
 
    include         \masm32\include\masm32.inc
    includelib      \masm32\lib\masm32.lib
 
    include         \masm32\include\kernel32.inc
    includelib      \masm32\lib\kernel32.lib
 
    include         \masm32\include\user32.inc
    includelib      \masm32\lib\user32.lib
--- End code ---
There is macro uselib in \masm32\macros\macros.asm. The "uselib" macro allows names that are used for both include files and library file to be used in a list without extensions. Note the following order of include files where WINDOWS.INC should be included first then the main macro file BEFORE this macro is called.
--- Code: ---        include \masm32\include\windows.inc
        include \masm32\macros\macros.asm
        uselib masm32,gdi32,user32,kernel32,Comctl32,comdlg32,shell32,oleaut32,msvcrt
--- End code ---

Navigation

[0] Message Index

Go to full version