Assembly Language - Endianess

Assembly Language - Endianness

                      Hey guys I hope you are doing well and also understood the concept behind the negative numbers. Now in this post I am going to explain the Endianness.

Endianness :-

  • Endianness is the way the data is represented within the memory.
  • Endianness has two types of representation
                                  1. Big Endian Representation
                                  
                                 2. Little Endian Representation
  • But first lets learn about the MSB and LSB.

Most Significant Byte (MSB) and Least Significant Byte (LSB) :-

  • MSB means the highest byte of  data/string
  • LSB means the lowest byte of  data/string

Assembly Language, Reverse Engineering, Binary Exploitation

Assembly Language, Reverse Engineering, Binary Exploitation


(As computer uses hexadecimal numbering system, Also refer the ascii table if you didn't understand how string conversion happened )

1. Big Endian :-

  • In big endian representation the MSB (Most Significant Byte) is placed at the lowest memory address with rest of the bytes followed into the corresponding memory locations.
  • Still confused don't worry I will give you an example by what I mean
Assembly Language, Reverse Engineering, Binary Exploitation
  • I don't have a practical machine to show how big endian works, so sorry
  • I can lets you know that if you are familiar with TCP/IP then it also uses the big endian format.

2. Little Endian :-

  • In little endian representation the LSB (Least Significant Byte) is placed at the lowest memory address with rest of the bytes followed into the corresponding memory locations.
  • Now comes the interesting part "Little Endian is mostly used format by modern machines also it is the most important one when it comes to reverse engineering and binary exploitation. You will come to know this when we start those sections".
  • Again I have also given an example regarding little endian.
Assembly Language, Reverse Engineering, Binary Exploitation
  • Here's the practical example of little endian.
Assembly Language, Reverse Engineering, Binary Exploitation



I hope you have understood this part if not then then let me know in the comments and I will clear those doubts. Now see you in the next post till then keep smiling .... :)
Assembly Language - Endianess Assembly Language - Endianess Reviewed by h4kk4 on March 20, 2020 Rating: 5

No comments:

Enter your comments here if you need any help:

Powered by Blogger.