Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set path=\masm32\bin
- set lib=\masm32\lib
- set name=SOFT
- ml.exe /c /coff "%name%".asm
- link.exe /SUBSYSTEM:WINDOWS /opt:nowin98 /LIBPATH:"%lib%" "%name%".obj
- del *.OBJ
- pause
- @echo on
- cls
- ...................................................
- .386
- .model flat, stdcall
- option casemap :none ; case sensitive
- ; ---- Include ------------------------------------------------------------
- include \masm32\include\windows.inc
- include \masm32\include\user32.inc
- include \masm32\include\kernel32.inc
- include \masm32\include\ntdll.inc
- include \masm32\include\shell32.inc
- include \masm32\macros\macros.asm
- includelib \masm32\lib\shell32.lib
- includelib \masm32\lib\user32.lib
- includelib \masm32\lib\kernel32.lib
- includelib \masm32\lib\ntdll.lib
- ; ---- Initialized data ---------------------------------------------------
- .data
- errorm db "error",0
- message db "msg",0;переменная с сообщением
- msgtitle db "TITLE",0 ;переменная с заголовком
- .data?
- buffer db 128 dup(?)
- ; ---- Code ---------------------------------------------------------------
- .code
- start:
- mov eax,[offset message+3]
- cmp BYTE PTR DS:[EAX],00h
- jnz err
- invoke MessageBox,0,offset message,offset msgtitle,MB_OK ;выводим сообщение
- jmp finish
- err:invoke MessageBox,0,offset errorm,offset errorm,MB_OK ;выводим сообщение
- finish:
- invoke ExitProcess,0
- end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement