masm Questions
2
Solved
So at the moment i am copying a screenbuffer (screenbuffer db 64000 DUP(0)) to the video memory (which starts at 0a0000h) to clear the screen. But i was wondering if it is better to just setup the ...
1
There is some info regarding the algorithm how the instruction works:
if low nibble of AL > 9 or AF = 1 then:
AL = AL + 6
AH = AH + 1
AF = 1
CF = 1
else
AF = 0
CF = 0
in both cases:
clea...
3
Solved
As the question suggests, I have to write a MASM program to convert an integer to binary. I have tried many different approaches, but none of them helped me at all. The final code I'm working on is...
2
Hi i m using dosbox and masm compilor. I want to prompts the user to enter a character, and prints the ASCII code of the character in hex and in binary on the next line. Repeat this process untill ...
2
Solved
I have a function with the signature :
extern "C" int foo(int a, int b, int c, int d, int e);
which is in fact written in assembly.
With ml(32 bits), using standard calling convention you can ...
Gastroenterology asked 20/11, 2013 at 17:40
1
I just started my assembly journey like recently, so obviously I'm a newbie, I've been writing fairly simple and basic programs and I just noticed something weird (to me).
a program giving the cou...
Vie asked 31/10, 2016 at 14:37
3
What is the difference between these two lines? What PTR changes here?
;first
mov BYTE [ecx], 0
;second
mov BYTE PTR [ecx], 0
2
I am assembling using MASM 14.0, and i am confused with the output of the below code.
TITLE Exercise 4 from chapter 4
; Author : Saad Ahmed
INCLUDE Irvine32.inc
.code
main PROC
mov eax, 0
mov ...
1
This assembly project reads the key presses and outputs them in a specific color. When a vowel is pressed it changes the color of the text until another vowel is pressed and does so until ESC is pr...
Chancemedley asked 21/3, 2016 at 1:53
3
Solved
So I have this problem I'm supposed to solve and I've spent hours trying to figure out the best way to do this, google hasn't been of much help.
The problem is to create a subroutine that is give...
1
Solved
I'm very new to Assembly and the code below is supposed to swap two integers via two different functions: first using swap_c and then using swap_asm.
However, I doubt, whether I need to push (I me...
Attractant asked 14/2, 2016 at 21:1
3
Solved
In Kip Irvine's book he talks about the mechanism to set the overflow flag, he writes:
The CPU uses an interesting mechanism to determine the state of the Overflow flag after an addition or subtra...
Schnapps asked 6/11, 2015 at 18:13
1
Solved
I searched and found I can not use __asm in x64 in Visual Studio. Instead I have to use an external assembly file.
How can I add an external assembly file to my Win32 Console project?
How can I com...
Stave asked 17/11, 2015 at 7:39
3
Solved
I have a problem with calling C function from asm project created in visual studio (Win10 x64, Visual Studio 2015). Project consist of one asm file:
.586
.model flat, stdcall
option casemap:none
i...
Radioscope asked 15/11, 2015 at 14:53
1
In Visual Studio, I wrote:
mov eax, [edx][ebx][ecx][edi]
But it assembles just fine.
Why it is not invalid effective address?
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
My ma'am give me an assignment in which i have to make a program which will take input through keyboard and check the conventional order of the nested brackets.
for example:
input= {[()]}, outpu...
3
Solved
1
I'm taking an Assembly Language class and the book gives me a list of data types:
BYTE - 8 bit unsigned integer
SBYTE - 8 bit signed integer
WORD - 16 bit unsigned integer
SWORD - 16 bit signed i...
1
Solved
I've been reading some assembly code and I've started seeing that call instructions are actually program counter relative.
However, whenever I'm using visual studio or windbg to debug, it always s...
1
Solved
I am taking a class in x86 assembly language and it's starting to move rather fast. There is one thing that the book keeps doing without mentioning how it works, and that is using the equ and = ope...
2
Solved
MCGA supports 4-bits color depth, that is 16 colors. But when I try to print all of these colors, I get only first 8 of them and the rest 8 simply duplicate them as on the pic below. Can it be that...
Tamandua asked 1/3, 2015 at 5:15
2
When i install masm assembler, it asked to install Microsoft visual c++ 2005 express edition. I installed it. Now i can find only "ml.exe". Where is masm.exe?
Even i tried in cmd by typing masm.exe...
3
I want to use "TSL" instruction in assembly , but it has no reference for understand .in some articles this instruction is introduced for mutual exclusion problem but it has no reference or complet...
3
Solved
I'm doing some x64 assembly with Visual C++ 2010 and masm ('fast call' calling convention).
So let's say I have a function in C++:
extern "C" void fillArray(unsigned char* byteArray, unsigned cha...
© 2022 - 2024 — McMap. All rights reserved.