C sizeof() can determine memory size of fully defined object. Do you have some typedef for your asm struct? If not and you want just size, then use extra end label and take address difference between two labels, like this
XDEF astruct, astructend
astruct DS.B 1
DS.B 5
astructend
#include <string.h>
extern char astruct, astructend;
memset(&astruct, 0, &astructend - &astruct); // "struct" size to clear is 6