Say I want to have following code, when on specific condition, either of subroutines will be called.

Code:
'1ST DIGIT


DG1:
AX VAR PORTD.3:BX VAR PORTC.4:CX VAR PORTC.1:DX VAR PORTC.2: EX VAR PORTD.0
FX VAR PORTD.2: GX VAR PORTC.5
RETURN


'2ND DIGIT


DG2:
AX VAR PORTD.4: BX VAR PORTD.5:CX VAR PORTA.7: DX VAR PORTA.6	
EX VAR PORTC.0:GX VAR PORTC.6: FX VAR PORTC.7	
RETURN
(and so on, for 2 more digits)

But it won't compile, giving above mentioned error. I can of course avoid this, by introducing additional variables for each digit, like having AX, AX2, AX3, AX4, but this is just waste of memory, I wanted to do a shortcut, but as it seems, that does not works?