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.