masm Questions
1
I'm using macros in MASM to generate about 2000 functions, for each of which I define a string, but I only use around ~30 of them in any given program.
(There is no way to predict which ones I wi...
Gaia asked 4/2, 2012 at 2:36
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?
...
3
Solved
What is purpose of les instruction in assembly?
Why do we need to load es segment and a register? Book gives following example:
les bx, p ; Load p into ES:BX
mov es:[bx], al ; Store away AL
Why...
3
I am trying to learn assembly for windows and see that there are 2 assemblers:
masm : https://www.microsoft.com/downloads/en/details.aspx?FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64
masm32 : h...
Bolding asked 2/11, 2010 at 8:8
1
Solved
I need to control C-State configuration. Specifically, I'd probably like to execute the following asm code:
__asm
{
rdmsr
and eax, 0x00
or eax, 0x01
wrmsr
}
Currently, I got this exception o...
Schlosser asked 3/5, 2011 at 21:13
2
Solved
I am looking for a win32 api function that clears the console, much like the cls command
Thanks!
Devjeet
3
Solved
I'm trying to code a exe packer/protector as a way of learning more about assembler, c++, and how PE files work. I've currently got it working so the section containing the EP is XORed with a key a...
Fennelflower asked 9/10, 2009 at 21:32
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...
5
Solved
Edit: Basically what I need is for visual studio to always rebuild all when I hit debug.
I'm currently using visual studio to compile my assembly programs, using MASM and in general it's working...
Sextet asked 4/3, 2010 at 4:7
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 ...
3
Solved
I'm trying divide two numbers in assembly. I'm working out of the Irvine assembly for intel computers book and I can't make division work for the life of me.
Here's my code
.code
main PROC
call ...
2
I'm working on a project and I need to compute something based on the rows and columns of an image. It's easy to take the bits of the rows of the image. However, to take the bits of each column I n...
Omeara asked 21/5, 2010 at 17:46
2
Solved
You are required to write a maximum of two instructions in assembly to do the following:
Clear bits 0 and 7 of register AL, i.e. make them 0
Set bits 3 and 4 of register AL, i.e. make them 1.
Com...
2
Solved
I am currently studying for an exam I'll have on x86 assembly.
I didn't have much luck googling for ":", too common of a punctuation mark :/
IDIV - Signed Integer Division
Usage: IDIV sr...
Tahmosh asked 19/4, 2010 at 13:54
6
Solved
I would like to use Visual Studio 2008 to the greatest extent possible while effectively compiling/linking/building/etc code as if all these build processes were being done by the tools provided wi...
High asked 21/9, 2008 at 22:42
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....
8
I'm taking a course on Microprocessor Programming as part of my Electronic Engineering degree. Unfortunately, in the labs, we have to work in DOS using MASM.
Now, I don't really find DOS a hindran...
1
Solved
Is there a way to comment multiple lines in assembly?
I am using Masm32 v9.
3
Why does this fail, once Masm reaches jmp?
struct gdt_entry
{
unsigned short limit_low;
unsigned short base_low;
unsigned char base_middle;
unsigned char access;
unsigned char granularity;
u...
Rangoon asked 9/9, 2009 at 7:18
1
Solved
I have been dealing with Nasm and GNU C inline asm on a Linux environment for some time and this function worked great... but now I am switching to a windows environment and I want to use Masm (wit...
Andante asked 6/9, 2009 at 11:49
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
Solved
So I am being taught assembly and we have an assignment which is to find the time difference between reading from memory and reading from cache. We have to do this by creating 2 loops and timing th...
Lipetsk asked 8/2, 2009 at 0:9
2
Solved
I decided to teach myself assembly language.
I have realized that my program will not compile if I attempt to change the value of any segment register.
Every article that I have found says that I...
© 2022 - 2024 — McMap. All rights reserved.