Previous 15994 Revisions Next

r5216 Monday 13th July, 2009 at 10:05:58 UTC by Robbbert
[TRS80] trs80m3 Enabled selection of Japanese characters.
[src/mess/drivers]trs80.c
[src/mess/machine]trs80.c
[src/mess/video]trs80.c

src/mess/video/trs80.c
r5215r5216
125125   UINT8 rows = (trs80_mode & 4) ? 24 : 16;
126126   UINT8 lines = (trs80_mode & 4) ? 10 : 12;
127127   UINT8 s_cols = cols;
128   UINT8 mask = (trs80_mode & 0x20) ? 0xff : 0xbf;   /* Select Japanese or extended chars */
128129
129130   if (trs80_mode & 1)
130131   {
r5215r5216
151152            if (((chr & 0xc0) == 0xc0) && (~trs80_mode & 8))
152153            {
153154               if (ra < 8)
154                  gfx = FNT[((chr&0xbf)<<3) | ra ];
155                  gfx = FNT[((chr&mask)<<3) | ra ];
155156               else
156157                  gfx = 0;
157158
src/mess/machine/trs80.c
r5215r5216
508508
509509WRITE8_HANDLER( trs80m4_ec_w )
510510{
511/* Hardware settings - d5..d3 not emulated
511/* Hardware settings - d5..d4 not emulated
512512   d6 CPU fast (1=4MHz, 0=2MHz)
513513   d5 1=Enable Video Wait
514514   d4 1=Enable External I/O bus
r5215r5216
518518
519519   cputag_set_clock(space->machine, "maincpu", data & 0x40 ? MODEL4_MASTER_CLOCK/5 : MODEL4_MASTER_CLOCK/10);
520520
521   trs80_mode = (trs80_mode & 0xfe) | ((data & 4) ? 1 : 0);
521   trs80_mode = (trs80_mode & 0xde) | ((data & 4) ? 1 : 0) | ((data & 8) ? 0x20 : 0);
522522
523523   cassette_change_state( trs80_cass, ( data & 2 ) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR );
524524
src/mess/drivers/trs80.c
r5215r5216
9696It was extremely expensive, non-standard, and not many were sold. A rom dump does not seem to exist.
9797
9898About the Model 4 - This has 4 memory maps.
99      We emulate Map 1 except for the legacy printer port (see address map for Model 3).
99      We emulate Map 1 (see address map for Model 3).
100100      Map 2 - RAM=0..37FF, Keyboard=3800..3Bff, Video=3C00..3FFF, RAM=4000..FFFF
101101      Map 3 - RAM=0..F3FF, Keyboard=F400..F7FF, Video=F800..FFFF
102102      Map 4 - RAM=0..FFFF

Previous 15994 Revisions Next


© 1998-2018 The MESS Team