CONTROL_REG	DATA	0x40
; specify bits` positions
RELAY_A		EQU	00000001b		; bit 0 does relay control: 0 - on; 1 - off
;...
MOTOR_1		EQU	10000000b		; bit 7 does motor control: 1 - on; 0 - off

; useful macros:
RELAY_ON	MACRO bit_position
	ANL	CONTROL_REG,#NOT(bit_position)
		ENDM
RELAY_OFF	MACRO bit_position
	ORL	CONTROL_REG,#bit_position
		ENDM
MOTOR_ON	MACRO bit_position
	ORL	CONTROL_REG,#bit_position
		ENDM
MOTOR_OFF	MACRO bit_position
	ANL	CONTROL_REG,#NOT(bit_position)
		ENDM

; somewhere in program:
	RELAY_ON  RELAY_A
	MOTOR_ON  MOTOR_1
;...
	MOTOR_OFF MOTOR_1
	RELAY_OFF RELAY_A