Skip to content

Commit

Permalink
fixed missing buffer change for percom
Browse files Browse the repository at this point in the history
  • Loading branch information
kbr committed Nov 5, 2022
1 parent 59ce08a commit 08e8ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SDrive.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,10 +1172,10 @@ void process_command ()
//0x28,0x01,0x00,0x12,0x00,0x00,0x00,0x80, IMSIZE1&0xff,(IMSIZE1>>8)&0xff,(IMSIZE1>>16)&0xff,(IMSIZE1>>24)&0xff,
//...
//0x01,0x01,0x00,0x00,0x00,0x04,0x01,0x00, 0x00,0x00,0x00,0x00
for(m=0;m<12;m++) atari_sector_buffer[m]=eeprom_read_byte(ptr++);
for(m=0;m<12;m++) ((unsigned char *)&percom)[m]=eeprom_read_byte(ptr++);
if ( (!isxex)
// &0xff... Due to the deletion of the eventual 16 ATR headings
&& ( FOURBYTESTOLONG(atari_sector_buffer+8)==(fs & 0xffffff80) )
&& ( FOURBYTESTOLONG((unsigned char *)&percom+8)==(fs & 0xffffff80) )
&& ( percom.bpshi == (secsize >> 8) ) //sectorsize hb
)
{
Expand Down

0 comments on commit 08e8ab5

Please sign in to comment.