MASM

Force visual studio to always 'rebuild all' when debugging

久未见 提交于 2019-11-30 23:20:22
问题 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 fine. However I've run into an annoying issue: If I include a file (say, a file with functions) like this Include functions.inc and compile it, it originally works fine. However if I then change the contents of functions.inc, this is not recognized and the compilers skips over functions.inc and uses

Debugging ASM with Visual Studio - Register content will not display

本秂侑毒 提交于 2019-11-30 20:02:17
问题 I have been working on an assembly language project for a class and though I have finally been able to work through all problems in this code ( I believe ), I now can't seem to get the Register contents to display. Here is my code... include C:\Irvine\Irvine32.inc .data ;Variables are listed in following order VAR DATATYPE DIGITS[RADIX] with comments showing binary version of listed digits left DWORD 321 ;101000001b right DWORD 4247 ;1000010010111b total DWORD ? ;uninitialized diff DWORD ?

Assembly difference between TASM and MASM

喜你入骨 提交于 2019-11-30 17:48:34
问题 I am learning TASM at University, but information regarding TASM on the web seems to be very limited. I have found more information on MASM. My question is, what is the different between MASM and TASM? 回答1: There aren't so much differences, but there are some. Check out this article: http://faqs.cs.uu.nl/na-dir/assembly-language/x86/borland.html Look for 'ideal' mode; btw, TASM can work with MASM syntax. 回答2: TASM = Turbo Assembler (a Borland product) MASM = Macro Assembler (a Microsoft

What does OFFSET in 16 bit assembly code mean?

a 夏天 提交于 2019-11-30 17:28:21
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? What does having 'OFFSET' there do? Nathan Fellman As some of the other answers say, the offset keyword refers to the offset from the segment in which it is defined. Note, however, that segments may overlap and the offset in one segment may be different in another segment. For instance, suppose you have the following segment in real mode data SEGMENT USE16 ;# at segment 0200h, linear address 2000h org 0100h

Assembly programming - WinAsm vs Visual Studio 2017

徘徊边缘 提交于 2019-11-30 15:59:24
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 get problems and stuff... I've checked the whole internet about "how to set up VS for MASM", but nothing has helped me as I'm always getting troubles... Is there any way to use Visual Studio 2017 for MASM32/64bit without any kind of headache? Can someone give me the ultimate guide to set up VS2017 for assembly programming? Thanks you very much and sorry for my weak english. How to build a x64/x86

MOV src dest (or) MOV dest src?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 11:06:34
问题 MOV is probably the first instruction everyone learns while learning ASM. Just now I encountered a book Assembly Language Programming in GNU/Linux for IA32 Architectures By Rajat Moona which says: alt text http://i.imagehost.org/0897/mov.gif But I learnt that it is MOV dest, src . Its like "Load dest with src ". Even Wiki says the same. I'm not saying that the author is wrong. I know that he is right. But what am I missing here? btw.. he is using GCC's as to assemble these instructions. But

Visual Studio only breaks on second line of assembly?

ぃ、小莉子 提交于 2019-11-30 10:00:28
The short description: Setting a breakpoint on the first line of my .CODE segment in an assembly program will not halt execution of the program. The question: What about Visual Studio's debugger would allow it to fail to create a breakpoint at the first line of a program written in assembly? Is this some oddity of the debugger, a case of breaking on a multi-byte instruction, or am I just doing something silly? The details: I have the following assembly program compiling and running in Visual Studio: ; Tell MASM to use the Intel 80386 instruction set. .386 ; Flat memory model, and Win 32

What does OFFSET in 16 bit assembly code mean?

做~自己de王妃 提交于 2019-11-30 01:31:54
问题 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? What does having 'OFFSET' there do? 回答1: As some of the other answers say, the offset keyword refers to the offset from the segment in which it is defined. Note, however, that segments may overlap and the offset in one segment may be different in another segment. For instance, suppose you have the following

How can i make 10000,1000,100 from 10 the easiest way

牧云@^-^@ 提交于 2019-11-29 17:41:31
i am looking for a solution for the question abowe. I need to generate 100,1000 and 10000(decimal numbers). Because the whole exercise is to caluclate: 10000*X+1000*Y+100*Y+10*V+1*C I know i can do it by the mul command,but in that case i have to work a lot with stack. I was thinking some kind of Shifting, but don't know how to do it with decimal numbers. With binary numbers mov al,2h;mov al,10b; shl al,1 Preferebla is masm enviroment.Thank you for your help Update1: I dont want to use mul nor imul(less then 32 bit number) I have a number as string(db) lets say 24575,i have hier the pseudo

assembly fatal error LNK1190: invalid fixup found, type 0x0001

余生颓废 提交于 2019-11-29 17:15:07
I want to write 16 bit 8086 assembly code in visual studio 2010 but gives me error: code: .MODEL small .STACK 100h .data message BYTE "Hello, world!","$" .code mov ah,9 mov dx,OFFSET message ; addr of buffer int 21h END output gives me this error: fm.obj : fatal error LNK1190: invalid fixup found, type 0x0001 I using masm32v11 . What should I do? Where does the Assembler know where the starting address is? Using Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994 (16bit linker) and added start and end start the code Assembles and links just fine. MASM32 includes a 16bit