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...
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...
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...
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?
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...
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 ...
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...
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...
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...
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...
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...
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 ...
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...
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?
...
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...
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 ...
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...
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....
1
Solved
Is there a way to comment multiple lines in assembly?
I am using Masm32 v9.
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...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.