void block_read_cmd(byte[] command)
{
int channel = 0, drvnum = 0, track = 0, sector = 0;
if (parse_bcmd(command, ref channel, ref drvnum, ref track, ref sector))
{
if (chan_mode[channel] == ChannelMode.CHMOD_DIRECT)
{
//read_sector(track, sector, buf_ptr[channel] = chan_buf[channel]);
read_sector(track, sector, chan_buf[channel]);
buf_len[channel] = 256;
set_error(ErrorCode1541.ERR_OK);
}
else
set_error(ErrorCode1541.ERR_NOCHANNEL);
}
else
set_error(ErrorCode1541.ERR_SYNTAX30);
}