if !def(_defines_inc_) _defines_inc_ equ 0 bits: macro ; Defines a _f constant and a mask constant for one ; or multiple bits in a byte. if _NARG < 2 \1_f rb 1 \1 equ 1 << \1_f else \1_f rb \2 x = 0 rept \2 x = x << 1 | 1 endr \1 equ x << \1_f endc endm enum: macro \1 rb 1 endm ; h_console rsreset enum console_dmg enum console_mgb enum console_cgb enum console_agb ; h_joypad rsreset bits joy_a bits joy_b bits joy_select bits joy_start bits joy_right bits joy_left bits joy_up bits joy_down joy_buttons equ joy_a | joy_b | joy_select | joy_start joy_dpad equ joy_right | joy_left | joy_up | joy_down endc