masm32 Questions

2

Solved

I want to know if using the MOV instruction to copy a string into a register causes the string to be stored in reverse order. I learned that when MASM stores a string into a variable defined as a w...
Humoresque asked 9/8, 2019 at 10:12

2

Solved

I want to know how setting or clearing the direction EFLAG changes how the SCAS and MOV instructions decrement or increment registers. I read some webpages and made the following assumptions I will...
Callous asked 1/8, 2019 at 5:53

6

Solved

I'm coding a simple primality tester program for Windows in x86 assembly language (MASM32), which involves calculating a square root of a (64-bit) integer. My question is: Is there any simple way f...
Airscrew asked 10/1, 2012 at 19:2

2

I am new to assembly language and wrote this code: main PROC mov eax,10000h ; Eax=10000h add eax,40000h ; Eax=50000h sub eax,20000h ; Eax=30000h call DumpRegs exit main ENDP END main I w...
Compute asked 18/3, 2014 at 17:21

3

Solved

Example: 0xAABBCCDD will turn into 0xDDCCBBAA My program crashes, due to Access Violation exception right in the first XOR operation. It seems like there's a better naive solution, using shiftin...
Wellgroomed asked 14/10, 2013 at 23:15

2

Solved

What is the difference between bx and bp in assembly? Example here: mov bx, 1h mov bp, 1h Do they reference to the same memory? Is it the same with ss and sp?
Sharasharai asked 2/9, 2011 at 4:45

3

Solved

Just wondering, in regards to my post Alternatives to built-in Macros, is it possible to avoid using the StdOut macro by using the int 21h windows API? Such as: .data msg dd 'This will be display...
Chem asked 14/5, 2012 at 12:47

1

I am currently editing several macros consisting of MASM code. They all look similar to this: Primary MACRO Key 0Bh,'0' Key 29h,15h Key 03h,'2' Key 06h,'5' Key 0Ch,'+' Key 0Dh,'´' Key 1Bh,'¨' Key ...
Concelebrate asked 22/10, 2015 at 8:12

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

2

I have a simple hello world C program and compile it with /FA. As a consequence, the compiler also generates the corresponding assembly listing. Now I want to use masm/link to assemble an executabl...
Phenice asked 12/5, 2010 at 1:35

1

Solved

I installed masm32 on my Windows XP SP3 machine. I downloaded masm32 from here: http://www.masm32.com/masmdl.htm Installed it. I added the path, C:\masm32\bin to the PATH environment variable. No...
Gulch asked 23/10, 2013 at 17:55

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

4

Solved

Here's the code: .386 ;target for maximum compatibility .model small,stdcall ;model .code main: int 20h END main Result: http://img705.imageshack.us/img705/3738/resultom.png "test.exe has st...
Tedium asked 1/3, 2010 at 6:11

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

1

Solved

I have a program that multiplies 3 numbers and i am trying to understand. I have some questions and i am hoping someone can explain whats going on with the program and tell me if i am on the right ...
Bonheur asked 15/7, 2012 at 0:10

1

I wrote simple Hello word program with masm32. But then when I try to disassemble it with IDA and I am getting much bigger output (I won't write it there because it would take to much space). And I...
Trisomic asked 26/5, 2012 at 9:35

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

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

2

Solved

I have quesetion about bt assembly instruction. I have excerpted part of book to provide context. Please see last example, bt Testme, bx. Why does that copy TestMe+8? Shouldn't it copy TestMe+65? ...
Bodleian asked 21/9, 2011 at 23:54

2

Solved

I've encountered something very strange, and things just don't add up. First of all, I posted this here because I'm not sure if this has anything to do with computer virusses at all. And if it doe...
Lu asked 9/1, 2011 at 19:22

2

Solved

I am trying to create a helloworld program using only masm and not masm32 libs. Here is the code snippet: .386 .model flat, stdcall option casemap :none extrn MessageBox : PROC extrn ExitProcess ...
Ensnare asked 8/11, 2010 at 10:27

2

Solved

So this morning I posted a confused question about assembly and I received some great genuine help, which I really appreciate. And now I'm starting to get into assembly and am beginning to underst...
Favian asked 1/3, 2010 at 0:54

1

Using MASM32 is it possible to display bitmaps stored in a binary file embedded with the executable to the console? Can anyone show me how? Addendum: I'm not talking about a full fledge GUI here....
Heteromerous asked 16/2, 2010 at 10:8

1

Solved

Is there a way to comment multiple lines in assembly? I am using Masm32 v9.
Tomi asked 19/1, 2010 at 19:24

2

I'm trying to query the value located in the Process Enviornment Block, pointed to by the FS segment register. Attempting to compile code with the fs:[0] segment included results in an error (error...
Saltatorial asked 2/7, 2009 at 12:25

© 2022 - 2024 — McMap. All rights reserved.