Previous 15994 Revisions Next

r4462 Tuesday 7th April, 2009 at 13:20:32 UTC by Robbbert
[TRS80] WIP
[src/mess/video]trs80.c

src/mess/video/trs80.c
r4461r4462
317317         break;
318318
319319      case 0x10:               // MODE 1
320         for (y = 0x40; y < 0x400; y+=0x40)
320         for (y = 0; y < 0x400; y+=0x40)
321321         {
322            for (ra = 0x400; ra < 0x3000; ra+=0x400)
322            for (ra = 0; ra < 0x3000; ra+=0x400)
323323            {
324324               UINT16  *p = BITMAP_ADDR16(bitmap, sy++, 0);
325325
r4461r4462
353353      case 0x20:               // MODE 2
354354         /* it seems the text video ram can have an effect in this mode,
355355            not explained clearly, so not emulated */
356         for (y = 0x40; y < 0x400; y+=0x40)
356         for (y = 0; y < 0x400; y+=0x40)
357357         {
358            for (ra = 0x400; ra < 0x3000; ra+=0x400)
358            for (ra = 0; ra < 0x3000; ra+=0x400)
359359            {
360360               UINT16  *p = BITMAP_ADDR16(bitmap, sy++, 0);
361361
r4461r4462
380380         /* the manual does not explain at all how colour is determined
381381            for the extended area. Further, the background colour
382382            is not mentioned anywhere. Black is assumed. */
383         for (y = 0x40; y < 0x400; y+=0x40)
383         for (y = 0; y < 0x400; y+=0x40)
384384         {
385            for (ra = 0x400; ra < 0x3000; ra+=0x400)
385            for (ra = 0; ra < 0x3000; ra+=0x400)
386386            {
387387               UINT16  *p = BITMAP_ADDR16(bitmap, sy++, 0);
388388
r4461r4462
504504/* Levels are unknown - guessing */
505505static const rgb_t lnw80_palette[] =
506506{
507   MAKE_RGB(200, 200, 200), // white
507   MAKE_RGB(220, 220, 220), // white
508508   MAKE_RGB(0, 175, 0), // green
509509   MAKE_RGB(200, 200, 0), // yellow
510510   MAKE_RGB(255, 0, 0), // red

Previous 15994 Revisions Next


© 1998-2018 The MESS Team