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
3
votes
3 answers

Assembly Addressing Modes

Can someone please explain what the difference between the following two are? I'm finding it a little difficult to understand the concepts behind addressing modes mov ax, [bx + di + 10] mov ax, [bx + di] + 10 Thanks so much!
Yuki
  • 155
  • 10
3
votes
1 answer

using text macros @date or @time in MASM x86

Student here: I would like a way to create a string holding the current date/time of the build, that I can output to the console. I have a consolOut that outputs strings character by character(string ending in a null), but I don't know how to…
Silver
  • 33
  • 3
3
votes
1 answer

MASM doesn't insert x87 WAIT prefixes with some combinations of CPU and FPU directives

Masm allows different cpu combinations before instructions but certain combinations do not correctly detect coprocessor instructions that require a wait prefix and will cause no wait prefix when a wait prefix is required. The following combinations…
3
votes
3 answers

MASM error Unknown relocation type (1) with 16b code

I am good with M68000 but X86 is diffficult for me. I am trying to assemble this simple program with MASM .MODEL SMALL .data? ONE dB ? TWO dB ? stack db 100 dup(?) .data MSG db 13,10, 'Enter deree of polynomials: $' MSG2 db 13,10,…
3
votes
1 answer

MASM32 x86 windows assembly GetCommandLineToArgvW

I would like to ask how to use the CommandLineToArgvW function in x86 assembly. I'm having trouble with it. All I can print as of today is the number of the arguments along with the program execution in cmd. I would like to save the arguments in…
3
votes
4 answers

unresolved external symbol _WinMainCRTStartup

I'm trying to assemble a simple "Hello world" application with Masm32. It assembles fine but when I try to link it, the linker says LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup prog1.exe : fatal error LNK1120: 1 unresolved…
Tihomir Mitkov
  • 846
  • 1
  • 11
  • 20
3
votes
1 answer

x86 Assembly Beginner: Program doesn't loop correctly?

The goal of the program below is to accept up to 10 signed 8-byte floating-point numbers within the range -100 ≤ X ≤ 100 as input from a user and store them into an array. The user input is received using the ReadFloat Irvine method. If a number…
Proto
  • 99
  • 5
3
votes
1 answer

How to output all the elements in an array in the following output?

After every 5 elements the next element should be printed on the next line. I am not allowed to use a string of empty spaces for the space between the elements. I tried using GoToXy, but I am having trouble. All elements in the first row have 5…
user6201447
3
votes
1 answer

Assembly Number Guessing Game

I'm trying to make a number guessing game in assembly code that starts out with a range of 1 to 1, then increments by 1 each time you get the answer right. For some reason though when I run the program the number that is output for range is…
student
  • 57
  • 1
  • 5
3
votes
1 answer

Moving variable's content into another variable

It seems to me like a very stupid question, but i couldn't find an answer. is there any other way to pass a data variable content, to another variable, not using push/pop, or moving it first to a register? I mean something like that: .data txt…
Daniel
  • 198
  • 2
  • 14
3
votes
1 answer

Mouse Selection in MASM32

Ultimately, I am trying to select a button when there is a left click on the mouse using assembly language but have not found any useful techniques. Any help would be grateful! The code for the program is below. INCLUDE IRVINE32.inc INCLUDELIB…
3
votes
1 answer

MASM and C jump to function

I have a pointer to a __stdcall function in C and in both x86 and x64 assembly what I'd like to do is have an asm function that I can use to jump to that function. For example take the windows API function MessageBoxW void *fn =…
newguy
  • 617
  • 6
  • 15
3
votes
2 answers

Where does DUP operator keeps counting number?

I need to initialize an array of structure in .DATA part of the program. Most are initialized with zero but I need to set up order number. Can I do that in .DATA part with using a register that stores DUP operator to initialize the order number of…
stefansixx1
  • 256
  • 1
  • 2
  • 11
3
votes
2 answers

Understanding assembly syntax issues with masm32 and Visual Studio 2013

After much trial and error, I still have some trouble understanding why the assembly syntax used in my textbook caused so many issues when using Windows 8. .MODEL SMALL .586 .STACK 100h .DATA Message DB 'Hello, my name…
Los
  • 31
  • 1
3
votes
0 answers

Assembly compilation failed using NASM on Windows 7 x64

I tried to compile the following code (test.asm): section .text global _WinMain@64 _WinMain@64: jmp _Begin _End: mov esi, 0x77162c51 ;Address of 'WinExec' function call esi ;Error(9) …
user1364743
  • 5,283
  • 6
  • 51
  • 90
1 2
3
39 40