masm Questions

1

Solved

I am porting a function from inline assembly to MASM in Visual Studio 2013 and am having trouble getting a return value out of it. Here is the C caller and the assembly function prototype: exter...
Desberg asked 9/12, 2014 at 19:18

2

Solved

I am new to StackOverflow. Recently, I began studying assembly and am fairly new to assembly, completely new to shellcode. I am using RadAsm to compile using MASM assembler and I tried studying she...
Winnie asked 28/8, 2014 at 6:48

1

Solved

In a simple program written for Microsoft's x64 assembler, I want to move a 64-bit value between an SSE register (say xmm0) and a general-purpose register (say rcx), as in <Intel syntax in MASM&...
Graze asked 16/7, 2014 at 19:44

1

Solved

I am trying to get to grips with MASM32 and am confused by the following: I thought that brackets were used for indirection so if I have the a pre-defined variable .data item dd 42 then mo...
Yardarm asked 5/8, 2014 at 0:54

1

Solved

I'm to write a macro that takes E,NE,A,B... as a parameter and a single command i.e mov eax,ebx which would execute if the condition set by a preceding cmp operation is true. An example call woul...
Opportune asked 12/12, 2013 at 3:39

3

Solved

Contents Intro Code Assembling and Running Miscellaneous Question 1. Intro This isn't a question per se (though there is one at the bottom) but a HelloWorld app for people on StackOverflow to...
Canterbury asked 31/12, 2010 at 5:33

1

I have the following MASM code: .386 .model flat, stdcall option casemap :none include \masm32\include\masm32rt.inc .data NewLine db 13, 10, 0 .code LibMain proc instance:dword,reason:dword,un...
Pistole asked 18/12, 2012 at 19:26

3

Solved

I've just begun learning some x86 assembly on win32, and I've used masm with visual studio 2008 using the custom build rule that comes with the ide for .asm files. I've been trying to use the DOS i...
Millhon asked 12/9, 2009 at 4:17

2

Solved

In x86 assembly language, is it possible to specify a jump to a specific line number? Here, I'm trying to use the jmp instruction to the line number 3. (I don't yet know of a way to pass a label as...
Deafening asked 16/4, 2013 at 4:26

2

Solved

I am using Visual C++ 2010, and MASM as my x64-Assembler. This is my C++ code: // include directive #include "stdafx.h" // functions extern "C" int Asm(); extern "C" int (convention) sum(int x, i...
Leven asked 24/2, 2013 at 1:40

3

Solved

The short description: Setting a breakpoint on the first line of my .CODE segment in an assembly program will not halt execution of the program. The question: What about Visual Studio's debugger...
Octaviaoctavian asked 26/10, 2012 at 2:45

2

Solved

I am learning TASM at University, but information regarding TASM on the web seems to be very limited. I have found more information on MASM. My question is, what is the different between MASM and ...
Scraperboard asked 26/11, 2012 at 15:31

1

Are there any assembly instructions to let us directly "set" or "clear" the "OF" and "TF" flags in Intel's 8086 16-bit Flags register ? If not, what pseudo code should we use?
Puree asked 17/11, 2012 at 8:36

1

Solved

Now that i know u can use gcc for Intel syntax instead of default at&t with gcc -S -masm=intel test.c There is this line mov DWORD PTR [ebp-16], OFFSET FLAT:base Is it the same as mo...
Goff asked 2/11, 2012 at 9:14

2

Solved

I am using MASM32. With this code: mov eax,5 sub eax,10 CF status flag will be set. But using my pencil and paper, I actually see that there is no any carry from MSB. Yes, I know that from sub...
Wastage asked 2/9, 2012 at 16:29

1

Solved

I am multiplying 3 numbers which works good even with a carry. I want to add a 4th number to multiply just for learning purposes. After i multiply 3 numbers i shift into EDX and print. Works great...
Sheliasheline asked 16/7, 2012 at 22:16

2

Solved

I noticed that in Assembly segments are used in opcodes. Example: MOV DWORD PTR SS:[EBP-30],30 I think that "PTR SS:" is used to specify that EBP-30 comes from the stack? (SS: stack segment) Am...
Erastus asked 30/5, 2012 at 16:59

2

Solved

I'm trying to make a program that gets two input numbers, multiplies them (storing the result in a variable), divides them (storing the result in another variable) and prints the result. The issu...
Frigidarium asked 21/5, 2012 at 1:12

1

Solved

I have done ARM assembly programming and I would like to learn the Intel Assembler. I keep hearing all these different F/M/N/ASMs mentioned- but I am unsure how they related to what I wish to achie...
Fate asked 16/4, 2012 at 18:55

3

Solved

What should I choose NASM or MASM for learning assembly. I want to learn assembly, motivation being Reverse Engineering. So that when I disassemble some executable, I can understand the code...
Dashpot asked 30/3, 2012 at 23:13

1

Solved

I'm learning assembly, motivation being able to reverse engineer. I'm trying to find the assembler I should begin with, so that I can then find tutorials and start writing some assembly. I c...
Goldeneye asked 30/3, 2012 at 13:42

3

Solved

I am learning assembly language in my spare time to become a better developer. I understand the difference between stack-based machines and register-based machines at a conceptual level, but I am ...
Preheat asked 21/3, 2012 at 9:22

1

Solved

I am working with the Adobe Flash ocx by loading it into my C++ program. The ocx is supposed to be 64 bit but for some reason it has issues when I compile with the x64 platform. I have read up on t...
Scrubland asked 16/2, 2012 at 0:35

2

Solved

I'm trying to inject a 64 Bit DLL into 64 Bit Process (explorer for the matter). I've tried using Remote-thread\Window Hooks techniques but some Anti-Viruses detects my loader as a false positive. ...
Paraboloid asked 7/3, 2012 at 18:51

3

Solved

How can I detect at compile time from an ASM source file if the target architecture is I386 or AMD64? I am using masm(ml.exe)/masm64(ml64.exe) to assemble file32.asm and file64.asm. It would be ni...
Tampere asked 7/4, 2010 at 20:8

© 2022 - 2024 — McMap. All rights reserved.