Previous 199869 Revisions Next

r34114 Tuesday 30th December, 2014 at 18:55:48 UTC by Jürgen Buchmüller
Fix missing speaker levels for trs80 (level2) by initializing speaker_sound_device with custom 4 levels.
[src/mess/drivers]trs80.c
[src/mess/machine]trs80.c

trunk/src/mess/drivers/trs80.c
r242625r242626
55
660000-2fff ROM                 R   D0-D7
773000-37ff ROM on Model III        R   D0-D7
8          unused on Model I
8     unused on Model I
9937de      UART status             R/W D0-D7
101037df      UART data           R/W D0-D7
111137e0      interrupt latch address (lnw80 = for the realtime clock)
r242625r242626
161637e5      select disk drive 2         W
171737e7      select disk drive 3         W
181837e0-37e3 floppy motor            W   D0-D3
19          or floppy head select   W   D3
19     or floppy head select   W   D3
202037e8      send a byte to printer          W   D0-D7
212137e8      read printer status             R   D7
222237ec-37ef FDC WD179x              R/W D0-D7
r242625r242626
4242Due to the above, the only working emulated UART is for the Model 3.
4343
4444Cassette baud rates:    Model I level I - 250 baud
45            Model I level II and all clones - 500 baud
46            Model III/4 - 500 and 1500 baud selectable at boot time
47            - When it says "Cass?" press L for 500 baud, or Enter otherwise.
48            LNW-80 - 500 baud @1.77MHz and 1000 baud @4MHz.
45       Model I level II and all clones - 500 baud
46       Model III/4 - 500 and 1500 baud selectable at boot time
47       - When it says "Cass?" press L for 500 baud, or Enter otherwise.
48       LNW-80 - 500 baud @1.77MHz and 1000 baud @4MHz.
4949
5050I/O ports
5151FF:
r242625r242626
9292    - 80-8F hires graphics (optional)
9393
9494About the ht1080z - This was made for schools in Hungary. Each comes with a BASIC extension roms
95        which activated Hungarian features. To activate - start emulation - enter SYSTEM
96        Enter /12288 and the extensions will be installed and you are returned to READY.
97        The ht1080z is identical to the System 80, apart from the character rom.
98        The ht1080z2 has a modified extension rom and character generator.
95   which activated Hungarian features. To activate - start emulation - enter SYSTEM
96   Enter /12288 and the extensions will be installed and you are returned to READY.
97   The ht1080z is identical to the System 80, apart from the character rom.
98   The ht1080z2 has a modified extension rom and character generator.
9999
100100About the RTC - The time is incremented while ever the cursor is flashing. It is stored in a series
101        of bytes in the computer's work area. The bytes are in a certain order, this is:
102        seconds, minutes, hours, year, day, month. On a model 1, the seconds are stored at
103        0x4041, while on the model 4 it is 0x4217. A reboot always sets the time to zero.
101   of bytes in the computer's work area. The bytes are in a certain order, this is:
102   seconds, minutes, hours, year, day, month. On a model 1, the seconds are stored at
103   0x4041, while on the model 4 it is 0x4217. A reboot always sets the time to zero.
104104
105105Model 4 memory organisation -
106        Mode 0: ROM=0-37E7 and 37EA-3FFF; Printer=37E8-37E9; Keyboard=3800-3BFF; Video=3C00-3FFF
107        Mode 1: Keyboard and Video as above; 0-3FFF read=ROM and write=RAM
108        Mode 2: Keyboard=F400-F7FF; Video=F800-FFFF; the rest is RAM
109        Mode 3: All RAM
110        In the "maincpu" memory map, the first 64k is given to the ROM, keyboard, printer and video,
111            while the second 64k is RAM that is switched in as needed. The area from 4800-FFFF
112            is considered a "black hole", any writes to there will disappear.
113        The video is organised as 2 banks of 0x400 bytes, except in Mode 2 where it becomes contiguous.
106   Mode 0: ROM=0-37E7 and 37EA-3FFF; Printer=37E8-37E9; Keyboard=3800-3BFF; Video=3C00-3FFF
107   Mode 1: Keyboard and Video as above; 0-3FFF read=ROM and write=RAM
108   Mode 2: Keyboard=F400-F7FF; Video=F800-FFFF; the rest is RAM
109   Mode 3: All RAM
110   In the "maincpu" memory map, the first 64k is given to the ROM, keyboard, printer and video,
111       while the second 64k is RAM that is switched in as needed. The area from 4800-FFFF
112       is considered a "black hole", any writes to there will disappear.
113   The video is organised as 2 banks of 0x400 bytes, except in Mode 2 where it becomes contiguous.
114114
115115Model 4P - is the same as Model 4 except:
116        - ROM is only 0000-0FFF, while 1000-37FF is given over to RAM
117        - There is no cassette support in hardware.
116   - ROM is only 0000-0FFF, while 1000-37FF is given over to RAM
117   - There is no cassette support in hardware.
118118
119119***************************************************************************
120120
trunk/src/mess/machine/trs80.c
r242625r242626
593593    d1, d0 Cassette output */
594594
595595   static const double levels[4] = { 0.0, -1.0, 0.0, 1.0 };
596   static int init = 0;
596597
597598   m_cassette->change_state(( data & 4 ) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR );
598599   m_cassette->output(levels[data & 3]);
r242625r242626
600601
601602   m_mode = (m_mode & 0xfe) | ((data & 8) >> 3);
602603
604   if (!init)
605   {
606      init = 1;
607      static INT16 speaker_levels[4] = { 0, -32768, 0, 32767 };
608      m_speaker->static_set_levels(*m_speaker, 4, speaker_levels);
609
610   }
603611   /* Speaker for System-80 MK II - only sounds if relay is off */
604612   if (~data & 4)
605613      m_speaker->level_w(data & 3);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team