assembly - What does `1<<0` do in this code snippet? -


what these lines of code ?

mbalign     equ  1<<0                    meminfo     equ  1<<1 

i know equ declare constants in nasm, 1<<0 do?

it looks similar c bit operators far know in assembly use shl , etc.

although shift nothing makes things easier read, think of

mbalign     equ  1<<0 meminfo     equ  1<<1 

as saying

mbalign     equ  bit0 meminfo     equ  bit1 etc. 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo