Added the Sigma Color 400, ported from PCem patch by John Elliott;

Spread the logging changes to machine files and added a missing log toggle to Makefile.local.
This commit is contained in:
OBattler
2018-10-22 04:22:00 +02:00
parent c3debcecd8
commit 54aca15a8b
16 changed files with 1016 additions and 101 deletions

View File

@@ -40,7 +40,7 @@
* W = 3 bus clocks
* L = 4 bus clocks
*
* Version: @(#)video.c 1.0.27 2018/10/02
* Version: @(#)video.c 1.0.28 2018/10/22
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -768,6 +768,17 @@ loadfont(wchar_t *s, int format)
fontdatksc5601[c].chr[d]=getc(f);
}
break;
case 7: /* Sigma Color 400 */
/* The first 4k of the character ROM holds an 8x8 font */
for (c = 0; c < 256; c++) {
fread(&fontdat[c][0], 1, 8, f);
fseek(f, 8, SEEK_CUR);
}
/* The second 4k holds an 8x16 font */
for (c = 0; c < 256; c++)
fread(&fontdatm[c][0], 1, 16, f);
break;
}
(void)fclose(f);