Total MD TMSS reverse engineering
Moderator: BigEvilCorporation
-
- Very interested
- Posts: 745
- Joined: Sat Dec 15, 2007 7:49 am
- Location: Kazakhstan, Pavlodar
I think it is simply stops generating !DTACK signal. That is more easy, than using HALT signal. Just masking !DTACK signal when VDP address decoded and no "SEGA" @A14000. Look in schematic: HALT signal goes from TA-04 (315-5364).
And one more thing: there 2 SRAMS on M68K bus, but one of them using VA14, but other one using IA14 (goes from pin 46 TA-04/315-5364). Why?
And one more thing: there 2 SRAMS on M68K bus, but one of them using VA14, but other one using IA14 (goes from pin 46 TA-04/315-5364). Why?
-
- Very interested
- Posts: 745
- Joined: Sat Dec 15, 2007 7:49 am
- Location: Kazakhstan, Pavlodar
Maybe it used for some mirroring process in M3 mode?Nemesis wrote:I never noticed that. I have absolutely no idea what purpose that could serve.And one more thing: there 2 SRAMS on M68K bus, but one of them using VA14, but other one using IA14 (goes from pin 46 TA-04/315-5364). Why?
BTW It is low-byte (VD0-VD7) SRAM.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Z80 continues to run after the VDP lock out and ROM access is not restricted in any way to it.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Any access will lock up the system, and Z80 isn't very effective when doing VDP writes in MD mode.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
This is not very specific, as you mentioned earlier, the Z80 apparently doesn't lock up. So, does Z80 access to VDP registers lock up the 68k? Does the VDP accept Z80 accesses? What role could the SMS mode play here in this scheme?TmEE co.(TM) wrote:Any access will lock up the system
Maybe, but that's not the point., and Z80 isn't very effective when doing VDP writes in MD mode.
Last edited by Oliver_A on Mon Nov 03, 2008 2:12 pm, edited 1 time in total.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
I need to see what happens when I try some VDP access from my sound engine (which runs on Z80)... I do expect that the write is ineffective then. I'm going to test it shortly.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
I did some quick tests and :
Any access will lock the system, either 68K or Z80 side. If 68K locks, Z80 will continue to run until it touches VDP.
Again some useless info
Any access will lock the system, either 68K or Z80 side. If 68K locks, Z80 will continue to run until it touches VDP.
Again some useless info
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
monthly post gravedigging
It could be very likely that this is Chip Enable for VDP, which is controlled by Bus Arbiter/TMSS & asserted only when the 'SEGA' word is written in the TMSS register. It could be interesting to spy this signal on a TMSS MD and see if its value change during the BIOS sequence
About that, there is a pin (VDPM) on the VDP schematic which is connected to the Bus Arbiter with no known purpose.Nemesis wrote:I wonder exactly how TMSS halts the system on a VDP access, in hardware terms. If the VDP was removed from the bus, the system would lock up by itself if VDP access was attempted, since the M68000 wouldn't get a response. The VDP does its own address decoding though, so it wouldn't be as simple as masking a CE line. Perhaps like Eke said, it might be asserting the M68000 HALT line. In this case though, maybe it's possible to get one write through to the VDP before the M68000 is halted? Or maybe there's another line running to the VDP which modifies its memory base, or disables it entirely? It couldn't completely disable the chip though, since the VDP generates the LWR and UWR lines, in the Model 1 system anyway, which would block access to virtually everything if it wasn't generated, including ROM and RAM.
It could be very likely that this is Chip Enable for VDP, which is controlled by Bus Arbiter/TMSS & asserted only when the 'SEGA' word is written in the TMSS register. It could be interesting to spy this signal on a TMSS MD and see if its value change during the BIOS sequence
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
I got no TMSS and TMSS MD's around... must see about it, but when I get home
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 292
- Joined: Sat Apr 21, 2007 1:14 am
Hey TmEE, I have a MegaDrive that works regardless of writing SEGA or not, even though it is Ver. 1 and the A14000 register is there and read/writable.
It's a real unit (HAA-2605 or whatever) though I was always suspicious as it has no internal shielding at all and no cartridge 'lock' mechanism. Maybe the former is only needed in the US to be FCC compliant and the latter was removed for cost cutting measures? Or the previous owner took it (and the shielding while he was at it) out to play US games?
Excuse me if we already discussed it, otherwise I can get chip numbers and PCB markings, etc. if you need them.
I wonder if a unlicensed cart could defeat this behavior by checking for the C00000-DFFFFF range and asserting DTACK on the cartridge port anyway. It wouldn't be accurate (e.g. the VDP can pause the 68000 by delaying DTACK assertion when the write FIFO is filled but the cart would never be able to do that), though it could be enough. ;D
It's a real unit (HAA-2605 or whatever) though I was always suspicious as it has no internal shielding at all and no cartridge 'lock' mechanism. Maybe the former is only needed in the US to be FCC compliant and the latter was removed for cost cutting measures? Or the previous owner took it (and the shielding while he was at it) out to play US games?
Excuse me if we already discussed it, otherwise I can get chip numbers and PCB markings, etc. if you need them.
If you don't write SEGA to $A14000 then the VDP will not generate DTACK for the C00000-DFFFFF range. Software still works but as soon as you touch the VDP everything locks up.Nemesis wrote:I wonder exactly how TMSS halts the system on a VDP access, in hardware terms.
I wonder if a unlicensed cart could defeat this behavior by checking for the C00000-DFFFFF range and asserting DTACK on the cartridge port anyway. It wouldn't be accurate (e.g. the VDP can pause the 68000 by delaying DTACK assertion when the write FIFO is filled but the cart would never be able to do that), though it could be enough. ;D
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
board model and chip markings would be cool to know
...and JP machines have no shielding and VA5 boards do not show TMSS in JP setting but do in EN setting.
...and JP machines have no shielding and VA5 boards do not show TMSS in JP setting but do in EN setting.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 292
- Joined: Sat Apr 21, 2007 1:14 am