File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1616#define sampleclk_stk (x ) ((x) * (SAMPLECLK_MHZ / STK_MHZ))
1717#define stk_sampleclk (x ) ((x) / (SAMPLECLK_MHZ / STK_MHZ))
1818
19- #if TARGET == TARGET_quickdisk
20- #define is_quickdisk TRUE
21- #else
22- #define is_quickdisk FALSE
23- #endif
24-
2519#if TARGET == TARGET_apple2
2620#define WDATA_TOGGLE TRUE
2721#else
@@ -101,7 +95,6 @@ struct raw_trk {
10195 int16_t gap_2 , gap_3 , gap_4a ;
10296 uint8_t interleave , cskew , hskew ;
10397 uint8_t has_iam :1 , is_fm :1 , invert_data :1 ;
104- #define RAW_TRK_HEAD (h ) ((h)+1)
10598 uint8_t head :2 ;
10699};
107100
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ bool_t image_valid(FILINFO *fp)
103103
104104 /* Check valid extension. */
105105 filename_extension (fp -> fname , ext , sizeof (ext ));
106- if (!strcmp (ext , "adf" ) && ! is_quickdisk ) {
106+ if (( TARGET == TARGET_shugart ) && !strcmp (ext , "adf" )) {
107107 return (ff_cfg .host == HOST_acorn ) || !(fp -> fsize % (2 * 11 * 512 ));
108108 } else {
109109 const struct image_type * type ;
@@ -323,7 +323,7 @@ uint32_t image_ticks_since_index(struct image *im)
323323 uint32_t ticks = im -> cur_ticks - im -> ticks_since_flux ;
324324 if ((int32_t )ticks < 0 )
325325 ticks += im -> tracklen_ticks ;
326- if (! is_quickdisk )
326+ if (TARGET != TARGET_quickdisk )
327327 ticks >>= 4 ;
328328 return ticks ;
329329}
You can’t perform that action at this time.
0 commit comments