Fix archie rom loading.

This commit is contained in:
sorgelig
2019-02-05 15:07:26 +08:00
parent 0496ff285d
commit 3c377474a1

View File

@@ -143,16 +143,13 @@ void archie_send_file(unsigned char id, char *name)
if (!(i & 127)) printf("*");
DISKLED_ON;
FileRead(&file, sector_buffer);
FileReadSec(&file, sector_buffer);
DISKLED_OFF;
EnableFpga();
spi8(ARCHIE_FILE_TX_DAT);
spi_block_write(sector_buffer, 1);
DisableFpga();
// still bytes to send? read next sector
if (i != blocks - 1) FileNextSector(&file);
}
FileClose(&file);