-1
I’ve seen that code from a bootloader :
https://ghostbin.com/paste/mwpub
And I can’t understand that part :
MBOOT_PAGE_ALIGN equ 1<<0
MBOOT_MEM_INFO equ 1<<1
Well I wonder what that means equ1<<0
, equ 1<<1
-1
I’ve seen that code from a bootloader :
https://ghostbin.com/paste/mwpub
And I can’t understand that part :
MBOOT_PAGE_ALIGN equ 1<<0
MBOOT_MEM_INFO equ 1<<1
Well I wonder what that means equ1<<0
, equ 1<<1
0
The word equ
serves to define constants, already <<
is an operator that "moves" the bits a number to the left, this type of operator is usually used to define flags.
See more in: https://en.m.wikipedia.org/wiki/Bitwise_operations_in_c http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489h/Caccddic.html
Browser other questions tagged c
You are not signed in. Login or sign up in order to post.