Previous 199869 Revisions Next

r25415 Tuesday 24th September, 2013 at 16:24:14 UTC by Jonathan Gevaryahu
Further work on swyft (n/w)
[src/mess/drivers]cat.c

trunk/src/mess/drivers/cat.c
r25414r25415
113211320x01E0-0x02DF: ? table (may be part of next table)
113311330x02E0-0x03DF: ? table
113411340x03E0-0x0B3F: int16-packed jump table (expanded to int32s at ram at 0x46000-0x46EC0 on boot)
11350x0B40-0x108F: ?binary code of forth interpreter?
11360x1090-0xCD3B: tForth bytecode, even the fonts?:
1137   0x1090-0x24CF: ?
1138   **Fonts:
1139   0x24D0-0x254F: ? (likely font 1 width lookup table)
1140   0x2550-0x2BCF: Font 1 data
1141   0x2BD0-0x2C4F: ? (likely font 2 width lookup table)
1142   0x2C50-0x32CF: Font 2 data
1143   **unknown?:
1144   0x32D0-0x360F: String data (and control codes?)
1145   0x3610-0x364F: ? fill (0x03 0xe8)
1146   0x3650-0x369F: ? fill (0x03 0x20)
1147   0x36A0-0x384d: ? forth code?
1148   0x384e-0x385d: Lookup table for phone keypad
1149   0x385e-...: ?
1150   ...-0xC951: ?
1151   0xC952: boot vector
1152   0xC952-...: boot code?
11350x0B40-0x0E83: ? function index tables?
11360x0E84-0x1544: binary code (purpose?)
11370x1545-0x24CF: ?
1138**Fonts:
11390x24D0-0x254F: ? (likely font 1 width lookup table)
11400x2550-0x2BCF: Font 1 data
11410x2BD0-0x2C4F: ? (likely font 2 width lookup table)
11420x2C50-0x32CF: Font 2 data
1143**unknown?:
11440x32D0-0x360F: String data (and control codes?)
11450x3610-0x364F: ? fill (0x03 0xe8)
11460x3650-0x369F: ? fill (0x03 0x20)
11470x36A0-0x384d: ? forth code?
11480x384e-0x385d: Lookup table for phone keypad
11490x385e-...: ?
1150...-0xC951: ?
11510xC952: boot vector
11520xC952-0xCAAE: binary code (purpose?)
11531153   0xCD26-0xCD3B: ?init forth bytecode?
115411540xCD3C-0xCEBA: 0xFF fill (unused?)
115511550xCEEB-0xFFFE: Forth dictionaries for compiling, with <word> then <3 bytes> afterward? (or before it? most likely afterward)
r25414r25415
13171317READ8_MEMBER( cat_state::swyft_via0_r )
13181318{
13191319   if (offset&0x000C3F) fprintf(stderr,"VIA0: read from invalid offset in 68k space: %06X!\n", offset);
1320   UINT8 data = m_via0->read(space, (offset>>5)&0xF);
1320   UINT8 data = m_via0->read(space, (offset>>6)&0xF);
13211321#ifdef DEBUG_SWYFT_VIA0
13221322   logerror("VIA0 register %s read by cpu: returning %02x\n", swyft_via_regnames[(offset>>5)&0xF], data);
13231323#endif
r25414r25415
13301330   logerror("VIA0 register %s written by cpu with data %02x\n", swyft_via_regnames[(offset>>5)&0xF], data);
13311331#endif
13321332   if (offset&0x000C3F) fprintf(stderr,"VIA0: write to invalid offset in 68k space: %06X, data: %02X!\n", offset, data);
1333   m_via1->write(space, (offset>>5)&0xF, data);
1333   m_via1->write(space, (offset>>6)&0xF, data);
13341334}
13351335
13361336READ8_MEMBER( cat_state::swyft_via1_r )
13371337{
13381338   if (offset&0x000C3F) fprintf(stderr," VIA1: read from invalid offset in 68k space: %06X!\n", offset);
1339   UINT8 data = m_via1->read(space, (offset>>5)&0xF);
1339   UINT8 data = m_via1->read(space, (offset>>6)&0xF);
13401340#ifdef DEBUG_SWYFT_VIA1
13411341   logerror(" VIA1 register %s read by cpu: returning %02x\n", swyft_via_regnames[(offset>>5)&0xF], data);
13421342#endif
r25414r25415
13491349   logerror(" VIA1 register %s written by cpu with data %02x\n", swyft_via_regnames[(offset>>5)&0xF], data);
13501350#endif
13511351   if (offset&0x000C3F) fprintf(stderr," VIA1: write to invalid offset in 68k space: %06X, data: %02X!\n", offset, data);
1352   m_via0->write(space, (offset>>5)&0xF, data);
1352   m_via0->write(space, (offset>>6)&0xF, data);
13531353}
13541354
13551355// first via

Previous 199869 Revisions Next


© 1997-2024 The MAME Team