ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/1541t64.cpp
(Generate patch)

Comparing Frodo4/Src/1541t64.cpp (file contents):
Revision 1.3 by cebix, 2004-01-11T00:09:51Z vs.
Revision 1.4 by cebix, 2004-01-11T14:03:29Z

# Line 525 | Line 525 | void T64Drive::close_all_channels(void)
525   *  Read from channel
526   */
527  
528 < uint8 T64Drive::Read(int channel, uint8 *byte)
528 > uint8 T64Drive::Read(int channel, uint8 &byte)
529   {
530          int c;
531  
532          // Channel 15: Error channel
533          if (channel == 15) {
534 <                *byte = *error_ptr++;
534 >                byte = *error_ptr++;
535  
536 <                if (*byte != '\r')
536 >                if (byte != '\r')
537                          return ST_OK;
538                  else {  // End of message
539                          set_error(ERR_OK);
# Line 544 | Line 544 | uint8 T64Drive::Read(int channel, uint8
544          if (!file[channel]) return ST_READ_TIMEOUT;
545  
546          // Get char from buffer and read next
547 <        *byte = read_char[channel];
547 >        byte = read_char[channel];
548          c = fgetc(file[channel]);
549          if (c == EOF)
550                  return ST_EOF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines