src/libxpeccy/tape.c
// add byte. b0len/b1len = duration of 0/1 bits. When 0, it takes from block signals data
add byte. b0len/b1len = duration of 0/1 bits. When 0, it takes from block signals data
add byte . b0len / b1len = duration of 0 / 1 bits . When 0 it takes from block signals data
void blkAddByte(TapeBlock* blk, unsigned char data, int b0len, int b1len) {
	if (b0len == 0) b0len = blk->len0;
	if (b1len == 0) b1len = blk->len1;
	for (int msk = 0x80; msk > 0; msk >>= 1) {
		blkAddPulse(blk, (data & msk) ? b1len : b0len);
	}
}
void blkAddByte ( TapeBlock * blk , unsigned char data , int b0len , int b1len ) { if ( b0len == 0 ) b0len = blk -> len0 ; if ( b1len == 0 ) b1len = blk -> len1 ; for ( int msk = 0x80 ; msk > 0 ; msk >>= 1 ) { blkAddPulse ( blk , ( data & msk ) ? b1len : b0len ) ; } }
add byte.
add byte .