Questions tagged [masm32]

MASM32 is a software development environment (SDK) for programmers using Microsoft's Assembler (MASM) to target 32-bit Windows.

MASM32 is freely available at http://www.masm32.com/.

597 questions
0
votes
1 answer

error A2004: masm visual studio 2012

Compiling the below asm code in Visual studio 2012 page 60,132 TITLE A05ASM1 (EXE) MOVE AND ADD OPERATION ;--------------------------------------------- STACK SEGMENT PARA STACK 'Stack' DW 32 DUP(0) STACK…
user2525379
0
votes
1 answer

variable changing value unexpectedly only when equal to zero in MASM32

I recently got arrays working in masm32, but I'm running into a very confusing snag. I have a procedure (AddValue) that accepts one argument and adds that argument to an element in an array called bfmem. Which element to affect is determined by a…
ApproachingDarknessFish
  • 14,133
  • 7
  • 40
  • 79
0
votes
1 answer

LNK4086 warning and missing dll entrypoint in VS2008 asm build

I tried to compile the following .asm file in VS2008 (as part of an empty Win32 dll project to which I added this single .asm file): .386 .model flat, stdcall option casemap:none TRUE equ 1 .code start: DllEntry proc…
Kris
  • 2,100
  • 5
  • 31
  • 50
0
votes
1 answer

Convert C code to MASM32

This seems a ridiculous question, but I really need to know an easy way to convert C code to MASM32 code (with the .if's, .while's). The code has a single function, but it uses structs (which, I believe, exists in MASM). I know there are a few…
Luan Nico
  • 5,376
  • 2
  • 30
  • 60
0
votes
1 answer

Using lib compiled in masm in c++

im trying to make a lib in masm32 (using radasm) for use in other projects... the libs source code : .386 .MODEL flat,stdcall option casemap:none .code start: PUBLIC HookProc HookProc proc addy:DWORD and for use in msvc : extern "C" void*…
n00b
  • 5,642
  • 2
  • 30
  • 48
0
votes
1 answer

Creating a BSOD with assembly in protected mode

I was looking and couldn't find any quick and easy way to BSOD a computer in assembly. I'm using MASM x86. I'm new at assembly and want to make a version or Russian roulette for computers. Basically you keep hitting enter and if you lose your…
0
votes
1 answer

Assembly - put in buffer register value

My eax register has the following value EAX DDCCBEE6 I want to put the value of eax to buffer so I can use it as it, I mean if I used SetDlgItemText it must set the text value of edit control to eax value which is DDCCBEE6 The value of eax is a…
0
votes
1 answer

How can I download (or compile) the libraries "stdlib.lib" and "stdlib.a"? (To use them for assembly)

I have the following code: include stdlib.a includelib stdlib.lib But on assembling, it gives me an error: "cannot open file : stdlib.a" I haven't any file called "stdlib.lib" or "stdlib.a". I've been searching for those files, but I can't find…
AskPGSV
  • 1
  • 1
  • 1
0
votes
1 answer

how to refresh the screen using masm assembly or an equivalent to application::doevents() in masm assembly

when the program is doing calculations in c++,c#,vb.net you can use the application::doevents() to refresh the screen so the screen do not freeze. how can you do this in assembly particular masm I tried putting invoke SendMessage, hWin,…
0
votes
1 answer

watch a directory for changes using masm assembly

I have been only programming in assembly for 2 weeks now so I am kind of new to assembly and I need some help. I need to watch a directory and all sub directories for changes. The only changes I need to be notified of are file creation and when a…
0
votes
1 answer

why is this masm assembly code not working in a loop, code works perfectly the first time but in a loop does not work

hey I have been using masm for 2 weeks now and I am trying to read from a text file line by line that has paths of files in them example of text file C:\a.rar C:\a.txt C:\a.png then I want to read in the whole contents of the file path and get the…
0
votes
1 answer

MASM ReadFile failed because of a bad handle value in EAX register

I want to convert the following C++ program in MASM (The goal is to open an existing file, write a string into it and at the end read the file) : void __cdecl _tmain(int argc, TCHAR *argv[]) { HANDLE hFile; …
user1364743
  • 5,283
  • 6
  • 51
  • 90
0
votes
3 answers

Need help regarding a masm32 program

I'm just a beginner in assembly programming. This is the code I was trying, but it keeps returning an error. Error is: F:\masm32\bin>ml PRINTSTRING.ASM Microsoft (R) Macro Assembler Version 6.14.8444 Copyright (C) Microsoft Corp 1981-1997. All…
0
votes
1 answer

MASM - Find browser window title?

I have a Webbrowser implemented into my application, is there any way to find the title of the currently loaded document in the Webbrowser ? What I am trying to achieve is that the browser reloads the website until the document reaches a specific…
Marius Prollak
  • 368
  • 1
  • 7
  • 22
0
votes
1 answer

MessageBox if no internet connection is established

I'm checking the Internet connection state and want to send a MessageBox if no internet connection is present what I have is this: ;build as a WINDOWS app .XCREF .NOLIST INCLUDE \masm32\include\masm32rt.inc …
Marius Prollak
  • 368
  • 1
  • 7
  • 22