byte open_direct(int channel, byte[] filename)
{
// int buf = -1;
// if (filename[1] == 0)
// buf = alloc_buffer(-1);
// else
// if ((filename[1] >= '0') && (filename[1] <= '3') && (filename[2] == 0))
// buf = alloc_buffer(filename[1] - '0');
// if (buf == -1)
// {
// set_error(ErrorCode1541.ERR_NOCHANNEL);
// return (byte)C64StatusCode.ST_OK;
// }
// unsafe
// {
// // The buffers are in the 1541 RAM at $300 and are 256 bytes each
// chan_buf[channel] = buf_ptr[channel] = (byte*)ram + 0x300 + (buf << 8);
// chan_mode[channel] = ChannelMode.CHMOD_DIRECT;
// chan_buf_num[channel] = buf;
// // Store actual buffer number in buffer
// *chan_buf[channel] = (byte)(buf + '0');
// buf_len[channel] = 1;
// }
return (byte)C64StatusCode.ST_OK;
}