Questions tagged [gas]

GAS for GNU Assembler is the assembler that comes with the GNU Compiler Collection.

Filter by
Sorted by
Tagged with
1
vote
2answers
48 views

What is the equivalent of the dollar sign from jmp $+1 in GAS syntax?

I have an asm program made with intel syntax. In this program, I am using this syntax jz $+1 from INTEL (+gcc), that means that I jump into the jz instruction (which is 2 bytes). I jump 1 byte further ...
4
votes
2answers
8k views

When was the MOVABS instruction introduced?

When trying to write an instruction set analysis tool for disassembled code (https://superuser.com/a/832440/384221) I have found opcode MOVABS which was not included in my opcode source database (...
2
votes
1answer
5k views

What is the meaning of '!' in ldm arm assembler instruction?

I am quite new to ARM assembly, I already saw that the bang (!) is used to really update a register after a computation in the addressing mode syntax, but I can't figure out what is the difference of ...
3
votes
2answers
28k views

Difference between 'add' and 'adds' in ARM assembler?

I am starting to look a bit more precisely at ARM assembler and I looked up some dumps from objdump. I saw a lot of instruction (add is not the only one) with an extra s at the end (adds, subs, ...). ...