1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Quick fix: also treat reception of sync as a reason not to stop looking for a data address mark.

This commit is contained in:
Thomas Harte 2017-08-15 20:16:56 -04:00
parent 75a9d2bb33
commit 709257a0c5

View File

@ -205,7 +205,7 @@ void i8272::set_disk(std::shared_ptr<Storage::Disk::Disk> disk, int drive) {
set_data_mode(DataMode::Scanning); \
CONCAT(find_data, __LINE__): WAIT_FOR_EVENT((int)Event::Token | (int)Event::IndexHole); \
if(event_type == (int)Event::Token) { \
if(get_latest_token().type == Token::Byte) goto CONCAT(find_data, __LINE__); \
if(get_latest_token().type == Token::Byte || get_latest_token().type == Token::Sync) goto CONCAT(find_data, __LINE__); \
}
#define READ_HEADER() \