MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

SailorSat
MAME Fan
Reged: 03/04/07
Posts: 169
Loc: Germany
Send PM
Re: Help emulating the model1 comm board
01/17/13 07:38 PM


After like reading through like 20 datasheets, some new details on the Comm Boards...

So far we got for my Model-1 Comm:
- 128k EEPROM (though less than 2kb are actually used)
- Z80 CPU (up to 4mhz, exact clock yet to be determined)

- MB89237A DMA-Controller (stated by the MB89395 datasheet)
- MB89374 "Data Link Controller"

- MB8464 SRAM 8K x 8 (most likely the "internal" ram of the board)

- MB8421 SRAM 2K x 8 \ Master-Slave setup
- MB8431 SRAM 2K x 8 / for 16 bit data

- several 74xx ICs as well as 3 PALs/GALs.

The MB89237A seems to support memory-to-memory transfers.
The whole comm board seems to run in "8086 mode".

As far as for the ROMs, the Z80 code seems to be pretty straightforward


Code:


...

Sub Routine at 0x0000

SP = A000
DI
IM 0
jump 0x03A2

...

Sub Routine at 0x03A2

CALL 0x0403
CALL 0x0456
CALL 0x043B
CALL 0x0403

A = [C001]
DEC A
if zero jump 0x03C5

XOR A

OUT 40 = A

DI

CALL 065A
CALL 0460
CALL 03E7
JP 0841

CALL 05B9
CALL 0460
CALL 05AA
CALL 03D4
JP 0757

A = 96
[8001] = A
CALL 07BA
(and so on...)

...

Sub Routine at 0x0403
A = 0x05
[C000] = A

CALL 0x0586

CALL 0x0590

XOR A
OUT 60 = A
OUT 40 = A

[800E] = A
[8006] = A
[8007] = A

A = 2
[8003] = A

A = [C0001]
OR A
if zero jump 0x0432

DEC A
if zero jump 0x043A (which is a RET)

A = 1
[8006] = A

RET

...

Sub Routine at 0x0432

A = 1
[8007] = A
[C004] = A
RET

...

Sub Routine at 0x044E
( reads basic dlc config from ROM, writes to DLC regs )

while not zero
c = (hl)
inc hl
outi

RET

(
IOW 0B17 C7 - Mask register - all enabled
0A0E 00 - TX IRQ enable - all disabled
090D 09 - transmit control - txrst txlast
080B 00 - RX IRQ enable - all disabled
070A 03 - receive controll - HUNT STC
061A 03 - BRG1 divide - DIV0 DIV1
0519 00 - BRG1/DPLL controll - all disabled
0400 02 - protocol select - PS1
0301 0C - crc select - CRCM1 CRCM0
0202 21 - transfer mode - CODE1 TCX0
0114 02 - transmit mode - TXUEND
0007 00 - modem controll - all disabled
)
...

Sub Routine at 0x0586

IOR 050C - transmit status

IOW 600C 60 - transmit status - all disabled BUT two unused bits

while not zero
IOR 6008/0008 - receive status 0
IOR 000F - serial data

HL = 011E
B = C

CALL 044E

RET
...

Sub Routine at 0x06FA

while bit 4 not set
IOR 000C - transmit status - Z80 loops until bit 4 is set (0x04 - TXEND)

IOR 0009 - receive status 1
IOR 0008 - receive status 0

while bit0 set (RXRDY)
IOR 000F - serial data

IOW 0017 FF - Mask register - all enabled

IOR 0028 - most likely NOT the DLC

RET

...




I do all that stuff even without a Joystick
Soft-15kHz, cabMAME, For Amusement Only e.V.







Entire thread
Subject Posted by Posted on
* Help emulating the model1 comm board SailorSat 10/15/12 08:22 PM
. * Re: Help emulating the model1 comm board SailorSat  01/05/13 06:26 AM
. * Re: Help emulating the model1 comm board Embryoice  12/30/12 06:41 PM
. * Re: Help emulating the model1 comm board jedpossum  01/04/13 03:03 PM
. * Re: Help emulating the model1 comm board Embryoice  01/05/13 01:42 AM
. * Re: Help emulating the model1 comm board jedpossum  01/05/13 01:57 PM
. * Re: Help emulating the model1 comm board SailorSat  01/08/13 07:56 PM
. * Re: Help emulating the model1 comm board nuexzz  01/09/13 06:42 AM
. * Re: Help emulating the model1 comm board Embryoice  01/09/13 02:53 PM
. * Re: Help emulating the model1 comm board SailorSat  01/16/13 10:03 AM
. * Re: Help emulating the model1 comm board RetroRepair  01/16/13 11:21 AM
. * Re: Help emulating the model1 comm board nuexzz  01/16/13 01:31 PM
. * Re: Help emulating the model1 comm board RetroRepair  01/16/13 04:26 PM
. * Re: Help emulating the model1 comm board nuexzz  01/16/13 07:15 PM
. * Re: Help emulating the model1 comm board SailorSat  01/16/13 03:15 PM
. * Re: Help emulating the model1 comm board RetroRepair  01/16/13 04:34 PM
. * Re: Help emulating the model1 comm board SailorSat  01/16/13 05:04 PM
. * Re: Help emulating the model1 comm board RetroRepair  01/16/13 05:28 PM
. * Re: Help emulating the model1 comm board SailorSat  01/17/13 10:17 AM
. * Re: Help emulating the model1 comm board SailorSat  01/17/13 07:38 PM
. * Re: Help emulating the model1 comm board SailorSat  01/17/13 08:53 PM
. * Re: Help emulating the model1 comm board SailorSat  01/17/13 09:13 PM
. * Re: Help emulating the model1 comm board StilettoAdministrator  01/18/13 12:46 AM
. * Re: Help emulating the model1 comm board SailorSat  01/18/13 01:15 AM
. * Re: Help emulating the model1 comm board R. Belmont  01/18/13 05:03 PM
. * Re: Help emulating the model1 comm board SailorSat  01/18/13 09:47 PM
. * Re: Help emulating the model1 comm board Junoman  01/18/13 10:12 PM
. * Re: Help emulating the model1 comm board SailorSat  01/19/13 04:15 AM
. * Re: Help emulating the model1 comm board SailorSat  01/19/13 10:05 PM
. * Re: Help emulating the model1 comm board SailorSat  01/20/13 07:20 PM
. * Re: Help emulating the model1 comm board RetroRepair  01/21/13 10:52 PM
. * Re: Help emulating the model1 comm board SailorSat  01/22/13 07:08 PM
. * Re: Help emulating the model1 comm board Naoki  01/24/13 06:34 PM
. * Re: Help emulating the model1 comm board SailorSat  01/31/13 03:29 AM
. * Re: Help emulating the model1 comm board SailorSat  02/02/13 05:15 AM
. * Re: Help emulating the model1 comm board RetroRepair  02/03/13 07:52 AM
. * Re: Help emulating the model1 comm board SailorSat  02/03/13 08:05 AM
. * Re: Help emulating the model1 comm board RetroRepair  02/03/13 08:23 AM
. * Re: Help emulating the model1 comm board SailorSat  02/03/13 08:24 AM
. * Re: Help emulating the model1 comm board RetroRepair  02/03/13 09:47 AM
. * Re: Help emulating the model1 comm board RetroRepair  02/03/13 10:00 AM
. * Re: Help emulating the model1 comm board R. Belmont  02/05/13 02:22 PM
. * Re: Help emulating the model1 comm board RetroRepair  02/05/13 10:00 PM
. * Re: Help emulating the model1 comm board R. Belmont  02/06/13 11:53 AM
. * Re: Help emulating the model1 comm board dgame  02/06/13 05:54 PM
. * Re: Help emulating the model1 comm board Embryoice  02/06/13 03:48 AM
. * Re: Help emulating the model1 comm board RetroRepair  02/03/13 10:58 AM
. * Re: Help emulating the model1 comm board vandale  02/03/13 08:58 PM
. * Re: Help emulating the model1 comm board SailorSat  02/04/13 01:18 AM
. * Re: Help emulating the model1 comm board R. Belmont  02/07/13 12:54 AM
. * Re: Help emulating the model1 comm board SailorSat  02/07/13 03:17 AM
. * Re: Help emulating the model1 comm board R. Belmont  02/21/13 05:11 PM
. * Re: Help emulating the model1 comm board SailorSat  02/22/13 02:59 AM
. * Re: Help emulating the model1 comm board coltonmameworld  12/30/14 07:16 PM
. * Re: Help emulating the model1 comm board fortuna_chan  02/25/13 06:40 PM
. * Re: Help emulating the model1 comm board R. Belmont  02/28/13 12:03 PM
. * Re: Help emulating the model1 comm board FMecha  03/04/13 01:36 PM
. * Re: Help emulating the model1 comm board SailorSat  03/05/13 03:39 AM
. * Re: Help emulating the model1 comm board R. Belmont  03/06/13 12:14 PM
. * Re: Help emulating the model1 comm board R. Belmont  03/10/13 03:29 PM
. * Re: Help emulating the model1 comm board SailorSat  03/18/13 04:36 AM
. * Re: Help emulating the model1 comm board Boomslangnz  03/30/13 11:04 PM
. * Re: Help emulating the model1 comm board Embryoice  04/01/13 01:14 PM
. * Re: Help emulating the model1 comm board R. Belmont  04/02/13 09:13 PM
. * Re: Help emulating the model1 comm board MichaelMichael54321  04/07/13 05:37 PM
. * Re: Help emulating the model1 comm board SailorSat  07/10/13 11:50 AM
. * Re: Help emulating the model1 comm board Retro27  07/22/13 07:22 AM
. * Re: Help emulating the model1 comm board SailorSat  08/02/13 09:17 AM
. * Re: Help emulating the model1 comm board SailorSat  10/13/14 07:36 PM
. * Re: Help emulating the model1 comm board SailorSat  10/14/14 02:11 PM
. * Re: Help emulating the model1 comm board R. Belmont  10/16/14 04:32 PM
. * Re: Help emulating the model1 comm board SailorSat  10/16/14 07:31 PM
. * Re: Help emulating the model1 comm board Naoki  08/02/13 11:08 AM
. * Re: Help emulating the model1 comm board Naoki  07/10/13 01:36 PM
. * Re: Help emulating the model1 comm board nuexzz  07/10/13 05:46 PM
. * Re: Help emulating the model1 comm board R. Belmont  03/20/13 11:48 AM
. * Re: Help emulating the model1 comm board Embryoice  03/18/13 10:23 AM
. * Re: Help emulating the model1 comm board Naoki  03/04/13 03:33 PM
. * Re: Help emulating the model1 comm board R. Belmont  03/04/13 03:57 PM
. * Re: Help emulating the model1 comm board nuexzz  02/02/13 01:59 PM
. * Re: Help emulating the model1 comm board StilettoAdministrator  01/22/13 08:09 PM
. * Re: Help emulating the model1 comm board SailorSat  01/18/13 09:47 AM
. * Re: Help emulating the model1 comm board StilettoAdministrator  01/18/13 10:27 AM
. * Re: Help emulating the model1 comm board RetroRepair  01/17/13 10:04 PM
. * Re: Help emulating the model1 comm board SailorSat  01/17/13 10:13 PM
. * Re: Help emulating the model1 comm board Embryoice  01/17/13 10:20 PM
. * Re: Help emulating the model1 comm board Embryoice  01/17/13 10:10 PM
. * Re: Help emulating the model1 comm board RetroRepair  01/17/13 11:05 PM
. * Re: Help emulating the model1 comm board StilettoAdministrator  12/30/12 06:56 PM
. * Re: Help emulating the model1 comm board RetroRepair  12/24/12 06:20 AM
. * Re: Help emulating the model1 comm board SailorSat  12/24/12 07:17 AM
. * Re: Help emulating the model1 comm board RetroRepair  12/24/12 08:24 AM
. * Re: Help emulating the model1 comm board SailorSat  12/30/12 07:26 AM
. * Re: Help emulating the model1 comm board SailorSat  12/30/12 01:24 PM
. * Re: Help emulating the model1 comm board SailorSat  12/30/12 04:45 PM
. * Re: Help emulating the model1 comm board Retro27  12/30/12 07:42 PM
. * Re: Help emulating the model1 comm board SailorSat  12/30/12 09:48 PM
. * Re: Help emulating the model1 comm board SailorSat  12/30/12 10:04 PM
. * Re: emulating the model1 comm board gregf  01/02/13 04:25 AM
. * Re: Help emulating the model1 comm board SailorSat  12/31/12 02:57 AM
. * Re: Help emulating the model1 comm board bdam  01/02/13 08:39 AM
. * Re: Help emulating the model1 comm board R. Belmont  01/02/13 06:28 PM
. * Re: Help emulating the model1 comm board StilettoAdministrator  01/04/13 02:46 PM
. * Re: Help emulating the model1 comm board R. Belmont  01/04/13 03:34 PM
. * Re: Help emulating the model1 comm board SailorSat  01/04/13 06:42 PM
. * Re: Help emulating the model1 comm board Reznor007  01/04/13 08:33 PM
. * Re: Help emulating the model1 comm board bdam  01/02/13 08:29 PM
. * Re: Help emulating the model1 comm board R. Belmont  01/02/13 09:13 PM
. * Re: Help emulating the model1 comm board SailorSat  01/02/13 12:55 PM
. * Re: Help emulating the model1 comm board nuexzz  01/04/13 03:30 AM
. * Re: Help emulating the model1 comm board Embryoice  01/02/13 03:04 PM
. * Re: Help emulating the model1 comm board RetroRepair  01/02/13 06:30 PM
. * Re: Help emulating the model1 comm board SailorSat  01/02/13 07:49 PM
. * Re: Help emulating the model1 comm board R. Belmont  01/02/13 09:28 PM
. * Re: Help emulating the model1 comm board drewcifer  01/03/13 01:13 PM
. * Re: Help emulating the model1 comm board SailorSat  01/03/13 04:05 PM
. * Re: Help emulating the model1 comm board StilettoAdministrator  01/04/13 02:50 PM
. * Re: Help emulating the model1 comm board Ramirez  01/04/13 06:15 AM
. * Re: Help emulating the model1 comm board Dullaron  01/03/13 08:33 PM
. * Re: Help emulating the model1 comm board R. Belmont  01/03/13 08:10 PM
. * Re: Help emulating the model1 comm board Naoki  01/03/13 06:21 PM
. * Re: Help emulating the model1 comm board Embryoice  12/30/12 06:01 PM
. * Re: Help emulating the model1 comm board Embryoice  02/02/13 02:19 PM
. * Re: Help emulating the model1 comm board SailorSat  02/02/13 07:09 PM
. * Re: Help emulating the model1 comm board vandale  02/02/13 09:27 PM
. * Re: Help emulating the model1 comm board SailorSat  02/02/13 09:35 PM
. * Re: Help emulating the model1 comm board vandale  02/02/13 10:34 PM
. * Re: Help emulating the model1 comm board vandale  02/02/13 11:42 PM
. * Re: Help emulating the model1 comm board vandale  02/03/13 02:27 AM
. * Re: Help emulating the model1 comm board SailorSat  02/03/13 07:26 AM
. * Re: Help emulating the model1 comm board StilettoAdministrator  12/30/12 06:22 PM
. * Re: Help emulating the model1 comm board Embryoice  12/30/12 06:33 PM
. * Re: Help emulating the model1 comm board Embryoice  12/30/12 06:10 PM
. * Re: Help emulating the model1 comm board SailorSat  12/30/12 06:16 PM
. * Re: Help emulating the model1 comm board R. Belmont  11/04/12 11:55 PM
. * Re: Help emulating the model1 comm board Lord Nightmare  10/21/12 01:50 PM
. * Re: Help emulating the model1 comm board FMecha  10/18/12 04:11 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 10 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 51953