@start: add ax,(@end-@start+992) mov bx,ax @seek: add bx,73 ; jump # bytes cmp [bx],0CCCCh ; check if this is a useless byte je @seek ; if true, scan again @check: and bx,0FFFFh cmp bx,ax ; check location (AX) isnt FFFF jne @destroy add ax,060h ; fix up ax cmp bx,ax ; check again jae @seek ; if ax is not FFFF (the end), dont kill @destroy: mov [bx-2],0cccch mov [bx],0cccch mov [bx+2],0cccch add bx,4 cmp [bx], 0cccch jne @seek jmp @destroy @end: