Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

intel-syntax

What do square brackets mean in x86 assembly?

June 6, 2023 by Tarik

Let’s make a very simple example and imagine we have a CPU with only two registers, EAX and EBX. mov ebx, eax Simply copies the value in eax to the ebx register | EAX : 01234567 | —-> | EAX : 01234567 | | EBX : 00000000 | ====> | EBX : 01234567 | Now … Read more

Categories assembly Tags assembly, intel-syntax, memory, x86 Leave a comment

What does the dollar sign ($) mean in x86 assembly when calculating string lengths like “$ – label”? [duplicate]

May 4, 2023 by Tarik

In this case, the $ means the current address according to the assembler. $ – msg is the current address of the assembler minus the address of msg, which would be the length of the string.

Categories assembly Tags assembly, intel-syntax, x86 Leave a comment

Limitations of Intel Assembly Syntax Compared to AT&T [closed]

January 17, 2023 by Tarik

There is really no advantage to one over the other. I agree though that Intel syntax is much easier to read. Keep in mind that, AFAIK, all GNU tools have the option to use Intel syntax also. It looks like you can make GDB use Intel syntax with this: set disassembly-flavor intel GCC can do … Read more

Categories linux Tags assembly, att, intel-syntax, linux, x86 Leave a comment

How do you use gcc to generate assembly code in Intel syntax?

October 25, 2022 by Tarik
Categories assembly Tags assembly, gcc, intel-syntax, x86 Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa