msg0 db "SQUELCH"
@@NOTR: test al,SQLCH ; Squelch byte?
jz @@FRAM ; no, then it is a frame.
and al,00111111b ; Leave just the count.
push cx ; Save current countdown counter.
mov cl,al ; get repeat count
xor ch,ch ; zero high byte of CX
mov bx,cx ; Repeat count in DX
mov al,dl ; Repeat of previous.
rep stosb ; Repeat it.
pop cx ; Get back remaining count.
sub cx,bx ; Less.
jnz @@DCMP ; Keep going.
jmp @@DONE