Previous 15994 Revisions Next

r5839 Monday 21st September, 2009 at 23:02:52 UTC by Robbbert
[TRS80] Fixed videoram banking on Model3/4/4p. Model 4p now displays a loading screen before crashing.
[src/mess/drivers]trs80.c

src/mess/drivers/trs80.c
r5838r5839
119119 TRS80 Katakana Character Generator
120120 TRS80 Small English Character Generator
121121 TRS80 Model III old version Character Generator
122 TRS80 Model 4P boot disk (being worked on)
123122 TRS80 Model II bios and boot disk
124123
125124Not emulated:
r5838r5839
214213   AM_RANGE(0x37e8, 0x37e9) AM_READWRITE(trs80_printer_r, trs80_printer_w)
215214   AM_RANGE(0x37ea, 0x37ff) AM_ROM
216215   AM_RANGE(0x3800, 0x38ff) AM_MIRROR(0x300) AM_READ(trs80_keyboard_r)
217   AM_RANGE(0x3c00, 0x3fff) AM_READWRITE(trs80_videoram_r, trs80_videoram_w) AM_BASE(&videoram)
216   AM_RANGE(0x3c00, 0x3fff) AM_READWRITE(trs80_videoram_r, trs80_videoram_w)
218217   AM_RANGE(0x4000, 0xffff) AM_RAM
219218ADDRESS_MAP_END
220219
r5838r5839
604603Note: Be careful when dumping rom C: if dumped on the trs-80 m3 with software, bytes 0x7e8 and 0x7e9 (addresses 0x37e8, 0x0x37e9)
605604      will read as 0xFF 0xFF; on the original rom, these bytes are 0x00 0x00 (for eproms) or 0xAA 0xAA (for mask roms), those two bytes are used for printer status on the trs-80 and are mapped on top of the rom; This problem should be avoided by pulling the rom chips and dumping them directly.
606605*/
607   ROM_REGION(0x10000, "maincpu",0)
606   ROM_REGION(0x10800, "maincpu",0)
608607   ROM_SYSTEM_BIOS(0, "trs80m3_revc", "Level 2 bios, RomC Rev C")
609608   ROMX_LOAD("8041364.u104", 0x0000, 0x2000, CRC(ec0c6daa) SHA1(257cea6b9b46912d4681251019ec2b84f1b95fc8), ROM_BIOS(1)) // Label: "SCM91248C // Tandy (c) 80 // 8041364 // 8134" (Level 2 bios ROM A '9639')
610609   ROMX_LOAD("8040332.u105", 0x2000, 0x1000, CRC(ed4ee921) SHA1(ec0a19d4b72f71e51965de63250009c3c4e4cab3), ROM_BIOS(1)) // Label: "SCM91619P // Tandy (c) 80 // 8040332 // QQ8117", (Level 2 bios ROM B '407c')
r5838r5839
627626
628627// for model 4 and 4p info, see http://vt100.net/mirror/harte/Radio%20Shack/TRS-80%20Model%204_4P%20Soft%20Tech%20Ref.pdf
629628ROM_START(trs80m4)
630   ROM_REGION(0x10000, "maincpu",0)
629   ROM_REGION(0x10800, "maincpu",0)
631630   ROM_LOAD("trs80m4.rom",  0x0000, 0x3800, BAD_DUMP CRC(1a92d54d) SHA1(752555fdd0ff23abc9f35c6e03d9d9b4c0e9677b)) // should be split into 3 roms, roms A, B, C, exactly like trs80m3; in fact, roms A and B are shared between both systems.
632631
633632   ROM_REGION(0x00800, "gfx1",0)
r5838r5839
637636ROM_START(trs80m4p) // uses a completely different memory map scheme to the others; the trs-80 model 3 roms are loaded from a boot disk, the only rom on the machine is a bootloader; bootloader can be banked out of 0x0000-0x1000 space which is replaced with ram; see the tech ref pdf, pdf page 62
638637// Currently this fails miserably due to lack of ram banking; it does some i/o stuff, copies some of the int vectors to 0x4000, then does some more i/o stuff and fills the entire 0x4000-43ff space with 0x20 (space? is it trying to clear the screen?), then immediately afterward it executes a RET; since the stack pointer is still pointing to 0x40A2, it RETs to 0x2020, which is in unmapped, nop-filled space.
639638// Clearly there's some major ram-bank related stuff that isn't working at all here.
640   ROM_REGION(0x10000, "maincpu",0)
639   ROM_REGION(0x10800, "maincpu",0)
641640   ROM_SYSTEM_BIOS(0, "trs80m4p", "Level 2 bios, gate array machine")
642641   ROMX_LOAD("8075332.u69", 0x0000, 0x1000, CRC(3a738aa9) SHA1(6393396eaa10a84b9e9f0cf5930aba73defc5c52), ROM_BIOS(1)) // Label: "SCM95060P // 8075332 // TANDY (C) 1983 // 8421" at location U69 (may be located at U70 on some pcb revisions)
643642   ROM_SYSTEM_BIOS(1, "trs80m4p_hack", "Disk loader hack")
r5838r5839
690689{
691690   trs80_mode = 0;
692691   trs80_model4 = 1;
692   videoram = memory_region(machine, "maincpu")+0x10000;
693693}
694694
695695static DRIVER_INIT( lnw80 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team