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...
Holladay asked 13/3, 2019 at 17:32

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...
Ruminate asked 28/1, 2019 at 1:27

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...
Heeling asked 22/10, 2018 at 17:26

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

I am going through some example assembly code for 16-bit real mode. I've come across the lines: mov bx, cs mov ds, bx mov si, OFFSET value1 pop es mov di, OFFSET value2 what is this doing...
Belinda asked 3/11, 2009 at 19:36

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

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...
Jeramyjerba asked 18/9, 2015 at 19:32

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...
Mancuso asked 20/11, 2012 at 8:13

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...
Demott asked 17/5, 2018 at 20:47

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...
Hideaway asked 18/4, 2018 at 22:43

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...
Breadth asked 4/10, 2010 at 8:41

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

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 ...
Lapboard asked 22/12, 2017 at 12:37

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...
Catholic asked 12/11, 2017 at 18:58

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...
Unpeople asked 16/7, 2017 at 2:14

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 ...
Macneil asked 25/6, 2017 at 3:14

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...
Negotiate asked 1/12, 2012 at 21:15

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...
Dysteleology asked 26/12, 2016 at 12:47

© 2022 - 2024 — McMap. All rights reserved.