handling of BAM in cbmdos