1,066 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
3
votes
5
replies
106
views
x86_64 AT&T style assembly manual
I'm looking for an assembly language manual for x86_64 architecture that uses the AT&T style. Is such manual available directly by AT&T? What I found was from [Oracle](https://docs.oracle.com/...
2
votes
2
answers
159
views
Location of the first value pushed onto stack in assembly (x86 I386 assembly) (gdb) (AT&T)
Consider the assembly program below:
.section .data
.section .text
.global _start
_start:
pushl 85ドル #make it obvious in memory
popl %ebx
movl 1,ドル %eax
int 0ドルx80
It ...
2
votes
0
answers
81
views
Problem with characters and cmp in x86_64 assembly language (AT&T) [duplicate]
I'm having trouble writing what should be a simple character counting program. Here's the file with the .data section, as given by the author of Learn to Program with Assembly, which I'm following (I ...
2
votes
2
answers
131
views
Pointers, referencing, and dereferencing static strings in assembly language
I'm writing a little toy program to try to help myself better understand this language (AT&T syntax, x86_64 assembly language). Consider this code, if you'll be so kind:
.section .data
mystring: ....
0
votes
1
answer
93
views
Undefined reference for .quad $symbol in AT&T assembly
You all were kind enough to help me recently with understanding this language a bit better. I'm working on AT&T syntax x86_64 assembly language through an Apress book. The author gives this code, ...
3
votes
4
answers
245
views
What is the difference between a value and a memory address in x86_64 AT&T assembly language?
Novice here, with a frustratingly simple question. I'm trying to learn assembly and this has been a stumbling block for me for so long, I would really appreciate help with these concepts. Thanks so ...
1
vote
0
answers
107
views
What's the difference between label and constant x64 AT&T assembly [duplicate]
Some context behind the question. I tried writing a simple exit call like this
.data
.equ EXIT, 60
.equ STATUS, 0
.text
movq EXIT, %rax
movq STATUS, %rdi
syscall
however the code fails with a ...
1
vote
1
answer
79
views
How do I output a character in protected mode in x86 Assembly (AT&T syntax)?
This is the code for a program that, when booted by a bootloader, disables interrupts, loads a GDT descriptor, enables the A20 Line, enables protected mode, and jumps into 32-bit code.
.code16
....
0
votes
0
answers
63
views
Does this assembler statement load an instruction into register?
Reading the article https://web.archive.org/web/20171219120457/http://nairobi-embedded.org/005_elf_types.html about ELF Object File Types, I faced up with the following assembler x86 instructions:
mov ...
2
votes
0
answers
35
views
Why is this example Assembly code that is trying to create a data record which is the address of another data record generating an error? [duplicate]
This question regards code from the book "Learn to Program with Assembly" by Jonathan Bartlett. The code in question is on page 96 and is called persondatanamepointer.s. The context is that ...
3
votes
1
answer
80
views
Should the box at the bottom be %rax instead of %rbx in Fig 6-1 of Jonathan Barlett's book?
I've been reading a book called "Learn to Program with Assembly, Jonathan Barlett". In which , I didn't understand the Figure 6-1.
Context: The author is explaining register-indirect mode, ...
0
votes
0
answers
33
views
Can an immediate value be moved into to a memory location without loading it into a register first? [duplicate]
I've been learning x64 assembly lately from a book (Learn to program in Assembly, Jonathan Bartlett). The book claims, "In order to manipulate the data, we have to move it into registers first.&...
0
votes
0
answers
37
views
Can anybody help me with these error messages, please? ≽^•⩊•^≼ [duplicate]
Here is the code (written in assebly at&t syntax):
.section .data
.equ N, 1024
v: .skip N * 4
fin: .string "input.txt"
fout: .string "output.txt"
descriptor:...
0
votes
0
answers
101
views
Assembly Calls Itself [duplicate]
I am rather new to assembly and have been trying to understand what is happening with the call instruction within this code. I have this simple C++ program that I compiled and disassembled with gdb.
#...
1
vote
0
answers
29
views
How to get CLI arguments in Assembly language without libc? [duplicate]
I wanted to print out first command line argument in x86_64 Assembly on Linux, but I have had hard time getting value of it. For clarification: commands I use to compile this are as -o args.o args.s -...