use DEC2 and 2 X bytes variable, and probably a last WORD sized one

HSERIN [DEC2 UnitNumber, DEC2 Action, DEC4 Trash]
and then you check UnitNumber to see if it fit your requirement.