Files
avr-test/include/asm.h
2025-12-22 13:34:10 +01:00

9 lines
352 B
C

/* Contains some assembly-specific instructions
* that ought to be beneficial*/
#pragma once
#define lo8(x) ((x) & 0xFF) /* Use bits 0..7 of x. */
#define hi8(x) (((x) >> 8) & 0xFF) /* Use bits 8..15 of x. */
#define hlo8(x) (((x) >> 16) & 0xFF) /* Use bits 16..23 of x. */
#define hhi8(x) (((x) >> 24) & 0xFF) /* Use bits 24..31 of x. */