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
-1
votes
1 answer

What "MOV AX, [BX]" actually does?

I am using x86 MASM32 Assembler. When code started, address of BX always does 078BH. What is the reaseon of this situation? Otherwise, There is a question like "Write assembly code which generates 8B07H machine code". I guess that this question…
nick
  • 1
  • 1
  • 4
-1
votes
1 answer

MASM32 string comparsion

I have written following code to compare two strings, one is predefined and other is taken as input from user. But everytime the program shows them as unequal. please assist me. I am using MASM32 assembler. .data msg1 db '***Welcome to My…
M Azeem N
  • 913
  • 2
  • 10
  • 11
-1
votes
1 answer

Is there in assembler the special symbol which indicate on line break in source code?

I have too large const, but masm don't compile my source code. How can I fix it? C25 byte 51, 135, 173, 160, 231, 165, 173, 168, 165, 32, 162, 235, 224, 160, 166, 165, 173, 168, 239, 32, 115, 117, 109, 91, 49, 48, 48, 48, 44, 32, 49, 48, 48, 48, 93,…
Max921
  • 3
  • 2
-1
votes
1 answer

The question is related to Assembly x86-32 RET n instruction

I know the meaning of Ret n but I can't figure out its role to maintaining program's runtime stack? I'm kind of confuse there. Do ret have somethig to do with stack?
-1
votes
1 answer

Failed to create a main window using Windows API and x86 assembly

The program compiles fine, but it fails to create the main window. Specifically, CreateWindowEx fails and prints "Failed to create window". Would anyone happen to know what I'm doing wrong? I'm following Kip Irvine's book on assembly almost exactly,…
Artur
  • 401
  • 1
  • 4
  • 8
-1
votes
1 answer

Assembly language and Fibonacci numbers

To keep this simple, I have received my first MASM32 project and it goes as follows: "Write an assembly program to generate and display the first 24 Fibonacci numbers, beginning with 1 and ending with 46368." Since this is my first project I…
T.Brown68
  • 11
  • 1
  • 8
-1
votes
2 answers

Change border color of Rectangle function in c++

How i can change border color of Rectangle function in C++/MASM32?
Majed Maniat
  • 11
  • 2
  • 5
-1
votes
1 answer

MASM32 - Implementing video

I want to add a video to my game in MASM32. I looked it up on the web, and got zero results. How do I add a video in MASM32 and display it out on screen?
jeff style
  • 61
  • 1
  • 7
-1
votes
1 answer

the program stops working whenver div command is executed

lea ecx,wtavg push ecx call StdOut xor eax,eax lea eax,wtsum ; I have values stored in these variables(integer data) mov eax,[eax] lea ecx,sumwts mov ecx,[ecx] div ebx ; The problem lies here, "Windows Stopped working"…
-1
votes
1 answer

access violation socket accept() on masm32

I'm trying to make a "socket" with masm32, but something is wrong with accept(), ollydbg show me an Access Violation when the code try to execute accept() and I don't know what is wrong, Can somebody tell me how can I fix it, please? .686 .model…
Makuvex Linux
  • 91
  • 1
  • 2
  • 6
-1
votes
3 answers

Randomizing Numbers in Assembly with MASM32

How can I randomize a number using Assembly with Masm32? What can I use to create a random numbers generator? Thank you very much!
Lucas Cleto
  • 195
  • 1
  • 16
-1
votes
1 answer

Assembler simple calculation with brackets

I'm trying to solve an equation. I'm using MASM32. I think that I'm using the correct code. But I am getting "greater" value even when I'm using necessary values to solve the equation. What am I missing or doing wrong? .386 .model flat, stdcall…
LTnewbie
  • 143
  • 2
  • 11
-2
votes
1 answer

Convert Binary to Decimal in MASM32

Convert decial to binary in MASM32. Help me include \masm32\include\masm32rt.inc .code start: call main exit main proc LOCAL var1: DWORD LOCAL dem: DWORD mov var1, sval(input("Enter Binary Number: ")) mov dem, strlen(str$(var1)) …
-2
votes
1 answer

How do I fix error unreolved externals in masm x86

I just want to move and add a few values but this error popped up the exact error is: error LNK2001: unresolved external symbol _ExitProcess@4. fatal error LNK1120: 1 unresolved externals .386 .model flat, stdcall .stack 4096 ExitProcess PROTO,…
-2
votes
1 answer

MASM32 Overwriting a file using assembly

I'm currently doing an encryption in some of my files as an exercise. However, I'm having a trouble in overwriting a .txt file and having a hard time identifying what went wrong. Below is the part of the code I've been working on which I think has…
Pentagon
  • 58
  • 9
1 2 3
39
40