Previous 15994 Revisions Next

r4465 Thursday 9th April, 2009 at 09:22:11 UTC by Robbbert
[TRS80] WIP - final
[src/mess/drivers]trs80.c
[src/mess/includes]trs80.h
[src/mess/machine]trs80.c

src/mess/includes/trs80.h
r4464r4465
2727MACHINE_RESET( trs80 );
2828MACHINE_RESET( lnw80 );
2929
30WRITE8_HANDLER ( lnw80_w );
3130WRITE8_HANDLER ( trs80_ff_w );
3231WRITE8_HANDLER ( lnw80_fe_w );
3332WRITE8_HANDLER ( sys80_fe_w );
r4464r4465
4443WRITE8_HANDLER ( trs80m4_90_w );
4544WRITE8_HANDLER ( trs80m4_88_w );
4645WRITE8_HANDLER ( trs80m4_84_w );
47READ8_HANDLER ( lnw80_r );
4846READ8_HANDLER ( lnw80_fe_r );
4947READ8_HANDLER ( trs80_ff_r );
5048READ8_HANDLER ( trs80_fe_r );
src/mess/machine/trs80.c
r4464r4465
865865{
866866   const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
867867   MACHINE_RESET_CALL(trs80);
868   trs80_reg_load = 1;      /* for LNW80 */
868   trs80_reg_load = 1;
869869   lnw80_fe_w(space, 0, 0);
870870}
871871
src/mess/drivers/trs80.c
r4464r4465
107107      The ht1080z is identical to the System 80, apart from the character rom.
108108      The ht1080z2 has a modified extension rom and character generator.
109109
110About the RTC - The time is incremented while ever the cursor is flashing. It is stored in a series
111      of bytes in the computer's work area. The bytes are in a certain order, this is:
112      seconds, minutes, hours, year, day, month. On a model 1, the seconds are stored at
113      0x4041, while on the model 4 it is 0x4217. A reboot always sets the time to zero.
114
110115***************************************************************************
111116
112117Not dumped (to our knowledge):
r4464r4465
122127 TRS80 Model III/4 Hard drive, Graphics board, Alternate Character set
123128 LNW80 1.77 / 4.0 MHz switch (this is a physical switch)
124129
130Virtual floppy disk formats are JV1, JV3, and DMK. Only the JV1 is emulated.
131There don't seem to be any JV1 boot disks for Model III/4.
132
125133***************************************************************************/
126134
127135/* Core includes */
r4464r4465
139147
140148/* Devices */
141149#include "devices/basicdsk.h"
142#include "devices/mflopimg.h"
143150#include "devices/cassette.h"
144151#include "formats/trs_cas.h"
145#include "formats/trs_dsk.h"
146152
147153UINT8 *gfxram;
148154UINT8 trs80_model4;
r4464r4465
662668      case MESS_DEVINFO_PTR_LOAD:         info->load = DEVICE_IMAGE_LOAD_NAME(trs80_floppy); break;
663669
664670      /* --- the following bits of info are returned as NULL-terminated strings --- */
665      case MESS_DEVINFO_STR_FILE_EXTENSIONS:      strcpy(info->s = device_temp_str(), "dsk,dmk"); break;
671      case MESS_DEVINFO_STR_FILE_EXTENSIONS:      strcpy(info->s = device_temp_str(), "dsk"); break;
666672
667//      case MESS_DEVINFO_PTR_FLOPPY_OPTIONS:      info->p = (void *) floppyoptions_trs80; break;
668
669673      default:               legacybasicdsk_device_getinfo(devclass, state, info); break;
670674   }
671675}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team