Category : assembly

Having such a simple Win32 assembly program .386 .model flat, c option casemap :none ;includelib C:UsersDarekDevVCliblibcmt.lib ;includelib C:UsersDarekDevVCliblegacy_stdio_definitions.lib EXTERN printf :PROC ; declare printf .data HelloWorld db "Hello j World!:-)", 0 .code main PROC push offset HelloWorld call printf add esp, 4 ret main ENDP END I’d like to change the entry point name from ..

Read more

I have a scenario where in some cases when opengl32.setPixelFormat is called it then call _wglDescribePixelFormat ( which is exported function ) which then calls further in the call stack ComputeBitsFromMasks and finally _MaskToBitsAndShift. The _MaskToBitsAndShift function remains in the loop and never finishes, causing hanging the whole app. Callstack is [email protected] opengl32.dll!ComputeBitsFromMasks [email protected] [email protected] ..

Read more

I’d like to write super simple Hello World Win32 program in assembly using the printf to compile with ml and link provided with my MSVC. Here is the code I’ve written so far: .386 .model flat, stdcall option casemap :none EXTERN printf :PROC ; declare printf .data HelloWorld db "Hello World!n" .code main: push offset ..

Read more

I’d like to write super simple Hello World Win32 program in assembly using the printf to compile with ml and link provided with my MSVC. Here is the code I’ve written so far: .386 .model flat, stdcall option casemap :none EXTERN printf :PROC ; declare printf .data HelloWorld db "Hello World!n" .code main: push offset ..

Read more