swap_copy
swap_copy((short *)data, (const short *)(port->rd_cur+port->was_read), block);
swap_copy((short *)(port->wr_cur+port->was_written), (const short *)data, block);