Skip to content

Commit 3578bb5

Browse files
committed
Have mem_modules() return coleco mem map
1 parent 5d63bc6 commit 3578bb5

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

mame_coleco.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# packets supported by MAME stub
44
# https://github.com/mamedev/mame/blob/master/src/osd/modules/debugger/debuggdbstub.cpp
5-
# ! -
5+
# ! -
66
# ? get last stop reason
77
# c continue
88
# D detach
@@ -86,6 +86,30 @@ def thread_select(self, tid):
8686
raise DebugAdapter.GeneralError('mame_coleco has only one implicit thread: 0')
8787

8888
#
89+
def mem_modules(self):
90+
#[0000, 2000) - BIOS ROM
91+
#[2000, 4000) - Expansion Port
92+
#[4000, 6000) - Expansion Port
93+
#[6000, 8000) - RAM (1K mapped into 8K)
94+
#[8000, FFFF] - Cartridge ROM (32K 4 sections, enabled separately)
95+
96+
# from https://github.com/mamedev/mame/blob/master/src/mame/drivers/coleco.cpp
97+
# ROM_START (coleco)
98+
# ROM_REGION( 0x10000, "maincpu", 0 )
99+
# ROM_SYSTEM_BIOS( 0, "original", "Original" )
100+
# ROMX_LOAD( "313 10031-4005 73108a.u2", 0x0000, 0x2000, CRC(3aa93ef3) SHA1(45bedc4cbdeac66c7df59e9e599195c778d86a92), ROM_BIOS(0) )
101+
# ROM_SYSTEM_BIOS( 1, "thick", "Thick characters" )
102+
# // differences to 0x3aa93ef3 modified characters, added a pad 2 related fix
103+
# ROMX_LOAD( "colecoa.rom", 0x0000, 0x2000, CRC(39bb16fc) SHA1(99ba9be24ada3e86e5c17aeecb7a2d68c5edfe59), ROM_BIOS(1) )
104+
# ROM_END
105+
106+
return {
107+
'colecoa.rom': 0,
108+
'ram_mapped.bin': 0x6000,
109+
'cartridge.rom': 0x8000
110+
}
111+
112+
# callbacks
89113
def thread_stop_pkt_to_reason(self, pkt_data):
90114
''' callback: given the stop packet data in the form of a "TDICT", return
91115
a (reason, extra_data) tuple '''

0 commit comments

Comments
 (0)