How does Sonic and Knuckles' “Lock-On Technology” work? (2016)
retrocomputing.stackexchange.com
retrocomputing.stackexchange.com
This is missing some important information. One input to the flip flop is D0 on the ROM, yes, but it only sets when there is a clock signal. Otherwise there would be some very interesting coding constraints.
The clock of the flip flop is connected to cartridge pin B31. Here's the best explanation I can find of that pin:
'/TIME' is the schematic label given to pin B31 on the cartridge slot. It is essentially a chip enable for the I/O port range $A130Fx, and is used for programming on-cart memory mappers. The only games I know of that use it are Beyond Oasis, Phantasy Star 4 (both for switching between ROM and SRAM at $200000-3FFFFF) and Super Street Fighter 2 (for a full-blown ROM banking chip). I don't know why it's called '/TIME'; perhaps they expected to connect an RTC chip to it.
So if you write to certain addresses, the genesis will flicker that pin, which is great for controlling an extra chip like this. (I mean, it's meant to control an extra chip, but it seems like the plan is a significantly smarter one than a flip flop.)
Thanks for your explanation. I'm a programmer but don't have a strong electronics background. Clock signals, those chip enable signals and how they interact were difficult for me, especially at the time I wrote that.
Edit: I just added a full citation for your comment. Thanks again!
Never thought it would make it to HN. In the comments I wrote:
> I wish a professional would comment on my analysis of the circuit; if there are errors, I would like to fix them and learn more.
Perhaps today is the day!
But man, that answer in the Stack site was excellent. Informative, long but concise, and very fun to read.
I wrote a blog post for some time ago titled "How I built my own Sega Mega Drive hardware dev kit from scratch" https://nestenius.se/2022/01/18/how-i-built-my-own-sega-mega...
Turns out it has a pretty simple and clever solution. Kind of lost that with post production shipped patches.
- 1080p maximum video output, meaning lower production and GPU costs
- Absolutely no internet or wireless connectivity. Wired controllers.
- Due to no wireless connectivity, all games produced are final from the beginning. Like the good old days.
- Switch-like cartridges, but with weaker DRM that maybe permits just using standard SD cards. Thus console has no need to have an expensive built-in disc reader and only requires minimal internal flash.
- Due to the niche market, the console manufacturer doesn’t charge a 30% cut, and handles all manufacturing in-house, so nobody needs to worry about financing a production run.
I think with proper marketing, and a good enough system for quickly porting games (maybe it’s just Proton under the hood?), you could find an audience in collectors… and prisons where the lack of connectivity is a feature.
Blaze changed the way the Evercade EXP reads carts, however, and it seems like the console no longer reads carts, or at least doesn’t after the first time.
Particularly intentionally making it unable to patch games. It's not like cartridge or pre-internet era disc games were bug free, just in that era you were stuck with whatever bugs the game shipped with forever. Games popular enough to get additional production runs were often patched, but those who bought an early version didn't get whatever changes the new one brought unless they went out and purchased a new one. Games that didn't sell well enough, perhaps at least in part because of the bugs they shipped with (E.T.? Superman 64?) never got patched.
The best case scenario back then was something like Morrowind on Xbox, where the game was popular enough to warrant the expansions being ported over from PC and released as a compilation with an updated version of the base game that included a workaround for the game-breaking issue experienced on the original release. We still had to buy the patch, but at least it came along with a lot of new content so it didn't feel like rebuying the same game.
And for certain groups (e.g., speedrunners), this was incredibly important. The example I'm most familiar with is Metroid Prime 1, where so many tricks and sequence breaks are only possible in the original NSTC release.
That said, this also isn't inherently a problem either.
Steam has a feature to allow delivery of different versions of a title. It's intended mostly for test releases, but some games use it to allow players to downgrade to specific versions for mod compatibility (Kerbal Space Program) or to deliver a different tweaked version for specific use cases (Truck Simulator VR port). This sort of thing could be used in the same way to support the speedrun community.
Also there are games which have restored rare bugs intentionally to support speedrunning. If the bug was unlikely to affect someone playing normally and is important to the speedrunning community there's no reason it necessarily needs to be patched.
The Steam Deck has no physical media. Xbox and PlayStation Physical Media is a joke with extremely buggy and often incomplete builds. Switch cartridges are much closer to ideal… but the Switch has well-known compromises. Performance could be far superior on a stationary non-handheld, you wouldn’t need to develop assuming Joy-Cons…
It would almost be marketable as being the machine for archivists and collectors; with a focus solely on what they appreciate (complete games, physical media, no gimmicks.)
iFixit's teardown of the Steam Deck resulted in them concluding that at least the base model was likely being sold either at cost or slightly below cost. Valve can do that because they have the ability to use it as a loss leader that drives game sales. A niche market product that doesn't take a cut of game sales as described would have to make enough money on its own to justify its existence, while also not having anywhere close to the volume so even the same parts would cost more.
It might be possible to beat the overall price by a small amount, but my point was that the overall value offered is very hard to beat.
> and the appeal to collectors comes from having physical media with a complete game.
Again I point back at the number of physical-only games that had revisions, and the number beyond that which likely would have had revisions if they got another production run. Just because it ships on read-only media doesn't mean it's complete.
Also the idea that collectors need physical media just feels gatekeepy to me. Over my lifetime I've probably put multiple man-weeks in to collecting, validating, and organizing digital media of all varieties, from classic console ROMs to TV shows and movies to modern video games. My collection certainly isn't something the copyright owners approve of in many cases, but it will live on as long as I care to maintain it without any fear of tampering while simultaneously having all the convenience of digital media.
If you want to have a shelf full of physical objects to display or enjoy the physical actions of swapping carts or discs that's perfectly fine, but those preferences only describe a subset of collectors not all.
> The Steam Deck has no physical media.
It has a SD card slot on which games can be installed and they will appear in your library when the card is inserted, behaving basically like a Switch.
No one distributes games for the Steam Deck or any other modern PC platform on physical media, but there's no technical reason they couldn't if there was a market that was worth the trouble.
> Xbox and PlayStation Physical Media is a joke with extremely buggy and often incomplete builds.
I'm 100% with you here. I don't care about physical media myself, but I do not understand why they even bother with the garbage that's been released in the last generation or two. Unexpected bugs are one thing, but if the game is not expected to be playable from the disc at all what was even the point of wasting all that plastic?
> It would almost be marketable as being the machine for archivists and collectors; with a focus solely on what they appreciate (complete games, physical media, no gimmicks.)
Again with the assumption that all collectors and even archivists want physical media. TBH I feel like archivists would prefer digital media, it's a lot easier to store long term without worrying about original media bitrot, loss, accidental or intentional damage, etc. My stack of Xbox discs will all become unreadable eventually. Even if they were placed in climate controlled storage, they have an expiration date. The disc drive that was supposed to read them failed years ago. My digital copies of those discs however are able to be put on my NAS where they're protected from hardware failure by RAID, from bitrot by ZFS, and from physical destruction by being mirrored to a backup server elsewhere in the country. They will be readable and verified weekly to be perfect for as long as I care to maintain this collection.
There is no doubt that many digital distribution platforms introduce their own new problems for collecting and archival, but these are not inherent flaws of digital distribution. They are simply implementation choices.
If you purchase a new musical release on CD and I purchase the same release on iTunes or whatever other platforms offer DRM-free lossless downloads we'll both have the exact same content, just yours will be tied to a physical token by default where mine won't. Both can be collected, both can be archived, both can have their content backed up in a way that is verifiably perfect, but one is less convenient to use or back up in exchange for a nostalgic experience that some enjoy.
There is no technical reason a gaming platform designed for enthusiasts couldn't offer games in a way that was archival-friendly. Obviously there are legal reasons such a thing doesn't exist right now, but at one point the same was true for music so its not impossible. Either way it's not a black and white line of digital versus physical, it's all about how the system is implemented on both sides.
Surprisingly, the rotting corporate corpse of a company that is the modern Atari managed to release their version, the stupendously called Atari VCS. However, no one cares about it, with Atari’s 50th anniversary collection the only thing of note that company has licensed. Not made. Licensed.
I guess there are things like the Colour Maximite 2 that allows for decent speed Basic interpretation. https://micromite.org/shop/maximites/colour-maximite/colour-...
Seriously though, great post! As a teenager with some knowledge of programming I always wondered what black magic enabled them to graft a new character into an old game (Sonic 2) - it never occurred to me that they'd just shipped a new version of the game code.
I realized recently that you could actually test this -- with a sufficiently old N64 console, and two copies of Banjo Kazooie, you could use the cheat codes to unlock the hidden locations on one game, then swap over to the second copy. Theoretically, that should unlock them without having to use the cheat codes.
If I was a bit more motivated to spend the money, I'd try it myself and make a Youtube video about it!
Reference: https://www.raregamer.co.uk/rare-gamer-interviews-paul-macha...
e; actually I think it's not possible for a Banjo-Kazooie game to transfer to another Banjo-Kazooie game, the memory that it writes to is different from the one it reads from. https://tcrf.net/Banjo-Kazooie/Stop_N_Swop
I think the Dreamcast Pop'n'music (Japan only) games might've had expansion discs as well? Not sure about that one.