masm Questions
0
In build system generated (Visual Studio 2017 Generator) with the following cmake, the 'test.asm' source file isn't compiled with the preprocessor definition MY_MASM_DEFINITION:
cmake_minimum_req...
Apartment asked 17/4, 2019 at 11:26
1
Solved
I have the following simple program written in MASM for an i386 processor:
TITLE BLA
.MODEL SMALL
.386
.STACK
.DATA
.CODE
MAIN PROC FAR
.STARTUP
MOV EBX,0FFFFFFFFH; (1)
MOV EAX,0EEEEEEEEH...
1
Solved
I have the following lines of programm (written for 8086 Microprocessor):
first SEGMENT BYTE
a db 7 dup (?)
first ENDS
second SEGMENT WORD
b dw 200 dup (?)
second ENDS
third SEGMENT PARA
c d...
1
Solved
I am trying to understand some of the programs that were written for MS DOS. Does the instruction mov ax, ds:4Ch move the value of ds*16 + 4Ch or does it move the value stored at the address ds*16 ...
Germanium asked 23/1, 2019 at 20:58
3
.model tiny
.code
org 100h
host:
mov ah,9
mov dx,offset hi
int 21h
mov ax,4c00h
int 21h
hi db 'HELLO'
end host
c: masm hello.asm
output of this says operand expected on line 1. Please t...
Marquardt asked 23/4, 2011 at 22:21
1
Solved
To make a normal (near direct relative) call to an absolute address, in NASM or AT&T syntax you write call 0x1234567, and the assembler + linker take care of calculating a rel32 to reach that t...
Bertberta asked 27/4, 2018 at 8:39
1
Solved
When using MASM 6.15 under DOSBox whenever I try to do:
mov al, [cx]
or
mov al, [cx + bx]
or
mov al, [cx + 4]
I am getting the error: 'Only Base or Index Registers are allowed'
But then a...
1
I'm here to ask you some stuff about VS2017.
In the past I had used WinAsm for MASM and I never got problems with it.
However, when I'm trying to do something with MASM in VS2017, I always gonna g...
Metaphysic asked 13/10, 2018 at 19:2
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
6
Solved
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
I am programming assembly language (x86) in MASM using Visual Studio 2013 Ultimate. I am trying to use an array to calculate a Fibonacci sequence for n elements using an array. In other words, I am...
3
So, I understand the general abstract concept of a buffer: it's an allocation in memory that holds data before it gets processed. I'm trying to complete a homework problem which requires me to writ...
1
I have a pretty simple few lines of assembly code, which moves around some data, like this:
mov rax,qword ptr gs:[60]
mov rcx,qword ptr ds:[rax+20]
mov rax,qword ptr gs:[60]
mov rcx,qword ptr d...
1
Solved
Looking at the picture, on line 34 I had to write the word ptr for this to work, while on line 44 I didn't.
Why is that?
Can't the compiler know that 0020h is a word just like 0FF20h is a word?
A...
4
Solved
I'm trying to learn NASM assembly, but I seem to be struggling with what seems to simply in high level languages.
All of the textbooks which I am using discuss using strings -- in fact, that...
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...
2
Solved
My code is too slow for 8086 & 80286 processors so i've decided to make use of 32 bit registers and instructions in my real mode code.
I know that all I really need to be able to do is prefix ...
2
Solved
I am a beginner in 8086 assembly language. I can understand the logic used in the program and write small programs myself. But I just want to know what this does:
.model small
.stack 300h
What i...
1
Solved
MASM provides a SEGMENT directive. The directive takes several parameters. The use parameter can take a value FLAT. It's unclear to me what this value does.
The Microsoft docs specify it as an acc...
1
I'm currently learning assembly programming by following Kip Irvine's "assembly language x86 programming" book.
In the book, the authors tries to explain the concept of data label
A data label ...
2
Solved
RECENT EDIT
I am trying to run this floating point Quadratic Equation program on x86 MASM. This code is found in the Kip Irvine x86 textbook and I want to see how it works visually. The following ...
Dorran asked 25/5, 2017 at 3:55
2
Why does the initialization of the DS and ES registers has to be done manually by the programmer?
For example:
MOV AX, DTSEG
MOV DS, AX
On the other hand, the CS and SS registers are initiali...
1
Solved
So it would appear how to use MASM has changed about 50 times over the years because I found a huge number of answers and not one of them works.
What I'd like to know is how do you call something ...
Readytowear asked 28/1, 2017 at 21:50
2
I met a problem about the Current Location Counter in MASM.
Here is my assembly code, and I used Visual Studio 2013 Express for assembling
.386
.model flat,stdcall
.stack 8192
ExitProcess proto,d...
© 2022 - 2024 — McMap. All rights reserved.