intel-syntax Questions
3
Solved
I'm going through the Intel processor documentation and writing some basic assembly code at the same time. I have both nasm and as (GAS) on my server and I understand the basic differences of both ...
Volturno asked 18/12, 2011 at 2:31
2
Solved
(gdb) set disassemble intel
Ambiguous set command "disassemble intel": disassemble-next-line, disassembler-options.
When i set the disassembly syntax to intel, it show this error.
Lowrance asked 7/3, 2019 at 9:43
2
Solved
I have the following code which compiles fine with the gcc command gcc ./example.c. The program itself calls the function "add_two" which simply adds two integers. To use the intel syntax within th...
Fiftyfifty asked 15/8, 2016 at 11:9
2
I'm wondering how to distinguish label names from register names in some instructions in the Intel syntax. For example, call rdx usually means an indirect jump, but what if we have a label rdx in t...
Oriental asked 22/8, 2019 at 9:18
1
Solved
I was reading this article about Position Independent Code and I encountered this assembly listing of a function.
0000043c <ml_func>:
43c: 55 push ebp
43d: 89 e5 mov ebp,esp
43f: e8 16 00...
Anticholinergic asked 16/3, 2019 at 4:16
1
Solved
It's me again, I have a new problem in my idt.S file (Intel syntax compiled with gcc). When I try to compile the following code:
load_idt:
mov edx, (esp + 4) ; On this line
lidt (edx)
sti
ret
...
Flowerdeluce asked 3/3, 2019 at 15:25
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
1
What is the order of operands in x86-64 assembly?:
instruction destination, source
Or:
instruction source, destination
I have three books and two different approaches!
Rochellerochemont asked 19/1, 2019 at 7:48
2
How can i write following: movq variable@GOTPCREL(%rip), %r8 in GAS Intel syntax?
.intel_syntax noprefix allows only this: mov r8, variable@GOTPCREL, it does not understand (), and resulting code ...
Imperative asked 18/10, 2018 at 17:11
1
Solved
I'm catching a link error when compiling and linking a source file with inline assembly.
Here are the test files:
via:$ cat test.cxx
extern int libtest();
int main(int argc, char* argv[])
{
retu...
Migraine asked 18/8, 2018 at 4:58
2
Solved
I'm very new to assembly, and have some very basic questions.
What is the difference between these four commands?
mov ebx, eax
mov [ebx], eax
mov ebx, [eax]
mov [ebx], [eax]
They say that the b...
Duky asked 4/2, 2018 at 13:14
1
Solved
GNU assembler appears to have some means of controlling the alternative forms of the opcode being emitted for some instructions. E.g.
.intel_syntax noprefix
mov eax, ecx
mov.s eax, ecx
Processin...
Simoom asked 6/12, 2017 at 11:25
1
Solved
I was working with AT&T syntax but thought i'd try out intel. I have this code:
.text
.global _start
_start:
mov ebx, 0
mov eax, 1
int 80h
Which should return 0, right? It did with AT...
Highlander asked 14/10, 2017 at 15:23
2
Solved
I want to know how,by looking through a sample source code, recognise if the syntax used is em8086, TASM or NASM? I am a new to assembly..I would like to know more about emu8086 please.
Dirtcheap asked 30/6, 2017 at 19:27
1
Solved
When reviewing gdb output and looking at the assembly calls, usually I can find a command using hard-coded values to determine whether the registers are being loaded right to left or vice versa.
...
Saleem asked 21/6, 2017 at 19:39
1
Solved
I have an instruction written in Intel syntax (using gas as my assembler) that looks like this:
mov rdx, msg_size
...
msg: .ascii "Hello, world!\n"
.set msg_size, . - msg
but that mov instructi...
Antigorite asked 6/9, 2016 at 18:1
1
Solved
I'm learning how to create real mode programs assembled and linked with:
GCC Assembler version 2.25
Binutils version 2.25
GCC version 5.2.0
I use Intel syntax without prefixes specified with ...
Zahara asked 27/4, 2016 at 19:16
4
Solved
Can anyone explain to me why every constant in AT&T syntax has a '$' in front of it?
Why do all registers have a '%'?
Is this just another attempt to get me to do a lot of lame typing?
Also, a...
Wilsey asked 16/11, 2010 at 11:53
3
For example, if we were writing a simple hello world type program, the .data section might contain something like:
section .data
msg db 'Enter something: '
len equ $ - msg
What does the $...
Fatma asked 28/4, 2012 at 6:32
3
Solved
The Intel syntax has comments using the semicolon. When I switched to AT&T, it actually tried to interpret the comments.
What is the comment syntax for AT&T assembly?
Marcellusmarcelo asked 3/7, 2013 at 7:46
1
Solved
The general form for memory addressing in Intel and AT&T Syntax is the following:
[base + index*scale + disp] # Intel, including GAS .intel_syntax noprefix
disp(base, index, scale) # AT&T
...
Hustings asked 14/1, 2015 at 5:8
1
I'm trying to use the following ASM inline code in my C++ source, given for Visual Studio :
__asm {
mov ecx,target
}
where target is a void* pointer. I don't know how to convert this into GCC-co...
Rillet asked 21/12, 2014 at 17:1
3
Solved
Why doesn't this code set temp to 1? How do I actually do that?
int temp;
__asm__(
".intel_syntax;"
"mov %0, eax;"
"mov eax, %1;"
".att_syntax;"
: : "r"(1), "r"(temp) : "eax");
printf("%d\n",...
Dallman asked 22/3, 2011 at 20:50
2
Solved
I am currently learning ARM assembly language;
To do so, I am trying to convert some x86 code (AT&T Syntax) to ARM assembly (Intel Syntax) code.
__asm__("movl $0x0804c000, %eax;");
__asm__(...
Rora asked 25/6, 2013 at 12:44
3
Solved
The gcc -S option will generate assembly code in AT&T syntax, is there a way to generate files in Intel syntax? Or is there a way to convert between the two?
Durnan asked 14/10, 2008 at 3:52
1 Next >
© 2022 - 2024 — McMap. All rights reserved.