; input register and mappings macro GET_INPUT push bc ld a, (REG_INPUT_P1_BUTTONS) ;cpl and $f sla a sla a sla a sla a ld b, a ld a, (REG_INPUT_P1_JOY) ;cpl and $f or b pop bc endm macro GET_INPUT_MISC ld a, (de) ;cpl endm INPUT_UP_BIT equ $3 INPUT_DOWN_BIT equ $2 INPUT_LEFT_BIT equ $0 INPUT_RIGHT_BIT equ $1 INPUT_B1_BIT equ $4 INPUT_B2_BIT equ $5 INPUT_UP equ (1<