- Timestamp:
- 01/05/2018 01:39:08 PM (7 years ago)
- Branches:
- master
- Children:
- 379ffd9
- Parents:
- 3231e25 (diff), 49efb91 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- emu
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/fdd.c
r3231e25 r56746cf 44 44 #define COM_WR_SEC 0xa2 45 45 #define COM_INT 0xd0 46 #define COM_WR_TRA 0xf0 46 #define COM_WR_TRA_WP 0xf0 47 #define COM_WR_TRA 0xf2 47 48 48 49 #define COM_LAT_CYC 5 … … 98 99 return "COM_WR_SEC"; 99 100 101 case COM_WR_TRA_WP: 102 return "COM_WR_TRA_WP"; 103 100 104 case COM_WR_TRA: 101 105 return "COM_WR_TRA"; … … 140 144 { 141 145 ver("fdd init"); 142 inf(" loading disk image file %s", disk);146 inf("reading disk image file %s", disk); 143 147 144 148 SDL_RWops *ops = SDL_RWFromFile(disk, "rb"); 145 149 146 150 if (ops == NULL) { 147 fail("error while opening disk image file %s ", disk);151 fail("error while opening disk image file %s for reading", disk); 148 152 } 149 153 … … 166 170 { 167 171 ver("fdd quit"); 172 inf("writing disk image file %s", disk); 173 174 SDL_RWops *ops = SDL_RWFromFile(disk, "wb"); 175 176 if (ops == NULL) { 177 fail("error while opening disk image file %s for writing", disk); 178 } 179 180 size_t stored = 0; 181 182 while (stored < SZ_DISK) { 183 size_t n_wr = SDL_RWwrite(ops, image + stored, 1, SZ_DISK - stored); 184 185 if (n_wr == 0) { 186 fail("error while writing disk image file %s", disk); 187 } 188 189 stored += n_wr; 190 } 191 192 SDL_RWclose(ops); 168 193 } 169 194 … … 338 363 339 364 case COM_WR_TRA: 365 case COM_WR_TRA_WP: 340 366 state.tra_0 = false; 341 367 fail("format not yet supported"); -
emu/lcd.c
r3231e25 r56746cf 24 24 int32_t lcd_verbose = 0; 25 25 26 #define WIN_W (1615 * 2 / 3)27 #define WIN_H (304 * 2 / 3)26 #define WIN_W (1615 / 2) 27 #define WIN_H (304 / 2) 28 28 29 29 #define GFX_BGR 0x00000000 -
emu/ser.c
r3231e25 r56746cf 24 24 int32_t ser_verbose = 0; 25 25 26 #define WIN_W (1520 * 2 / 3)27 #define WIN_H (950 * 2 / 3)26 #define WIN_W (1520 / 2) 27 #define WIN_H (950 / 2) 28 28 29 29 #define BEL_CYC 10000 30 30 #define MOU_CYC 10000 31 32 #if defined EMU_WIN 33 #define MOU_DIV 64 34 #elif defined EMU_OS_X 35 #define MOU_DIV 1 36 #else 37 #define MOU_DIV 4 38 #endif 31 39 32 40 #define CON_W 80 … … 335 343 mou_dx, mou_dy, mou_l ? 'l' : '-', mou_r ? 'r' : '-'); 336 344 337 int32_t dx = mou_dx ;338 int32_t dy = mou_dy ;345 int32_t dx = mou_dx / MOU_DIV; 346 int32_t dy = mou_dy / MOU_DIV; 339 347 340 348 if (dx < -128) {
Note:
See TracChangeset
for help on using the changeset viewer.