-
Notifications
You must be signed in to change notification settings - Fork 2
HI_NIBBLE macro
Douglas Lyman edited this page Nov 28, 2022
·
2 revisions
Gets the upper 4 bits of a byte.
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
BYTE HI_NIBBLE(BYTE b);
b
The byte to get bits from.
The upper 4 bits of the input byte.
#include "Definitions.h"
int main() {
BYTE b = HI_NIBBLE(0xAB); // Returns: 0xA.
}
Header | Definitions.h |
---|---|
Assembly | None |
The Project Artemis components: Artemis - Artemis-Loader - Artemis-Installer - Artemis-Extension-Framework
The team behind Project Artemis: Sigma - Monke - Tavreth
Contact us at artemis.singularity@gmail.com or join our Discord server!