HNHacker News
TopNewBestAskShowJobs

RetroSpark

97 karma · joined May 28, 2016

submissionscomments
RetroSpark··on Color Emulation
Absolutely, couldn't agree more. I just wanted to clarify why the bit-shifting approach was equivalent to the previous comment's multiplication by 36.4.

> This is one of my favorite sites on the internet: https://graphics.stanford.edu/~seander/bithacks.html

Yes - I also enjoyed the book "Hacker's Delight", but haven't got round to reading the second edition yet.

RetroSpark··on Color Emulation
The calculation `red = r << 5 | r << 2 | r >> 1` is equivalent to `red = floor(r * (1 << 5 | 1 << 2 | 1 >> 1))`, which is `red = floor(r * 36.5)`.
RetroSpark··on Color Emulation
The Sega Master System has 6 bit-per-pixel color, 2 bits for each of red, green and blue. You would expect values 00, 01, 10 and 11 for each color to represent 0%, 33%, 66% and 100% voltage on the corresponding pin of the Video Display Processor. However, I once connected an SMS to an oscilloscope and found voltage levels much less evenly-spaced than this - and they were quite different for different console models.

Even if the voltages had been evenly spaced, would it have been correct to use evenly-spaced values (0, 85, 170 and 255) for each of r, g and b in an emulator? I believe this would be correct, assuming that the gamma curve of a modern monitor matches that of a 1980s/90s TV - which should be the case for a monitor calibrated to sRGB?

RetroSpark··on New games for the Atari Lynx
Portable consoles haven't gone anywhere - Nintendo is releasing a new one in just 10 days!

Other manufacturers may have stopped building them, but that's because (with the exception of Sony's PSP) Nintendo's handhelds are the only ones that have ever really been successful.

RetroSpark··on New games for the Atari Lynx
That's another interesting thing about the Lynx - it has so much RAM compared to other 8-bit game systems (the Game Boy, Master System, Game Gear and PC Engine all have 8KB, the NES has just 2KB).

Those other systems all work by memory-mapping the ROM cartridge so that it can be seen by the CPU directly, whereas the Lynx requires ROM data to be read into RAM first. In that way, its programming model is more like a system with a disc drive (either magnetic or optical) than one which takes ROM cartridges.

RetroSpark··on New games for the Atari Lynx
> According to Epyx, Sega still got it wrong and produced a crappy design in comparison. To be fair, the Lynx was a far more capable system.

Making the Game Gear more-or-less a portable Master System was probably the right decision though. It enabled easy porting of existing Master System games, and development of new games to run on both platforms. Although the SMS was dead in Japan and North America before the Game Gear's release, it was still going strong in Europe and other markets.

It also made possible the Game Gear's SMS mode, in which the machine behaves exactly like a Master System. This allowed backwards compatibility with existing SMS games via an adapter (which seems to have been important to Sega - the Genesis has a similar capability), and enabled an even simpler method of porting SMS games: a few Game Gear games [1] are really SMS games with a built-in adapter.

The Game Gear therefore had a stronger software library than the Lynx, despite being technically inferior. And, ultimately, the overwhelming success of the Game Boy showed that it is the games (and battery life) that really matter.

[1] http://www.smspower.org/Tags/SMS-GG

RetroSpark··on New games for the Atari Lynx
> Not only could it display in color, but it also supported scaling and rotation effects.

IIRC the Lynx was designed at a time (1986-87) when this was feasible for portable systems but not for consoles, because of its low resolution (160 x 102 - the height seems strange until you realize that it gives you almost exactly 16 * 1024 pixels).

> Sega also ended up lifting a lot of the Lynx's design for the Game Gear after the Handy was pitched to them by Epyx.

The external design, maybe, but the internals of the two machines are very different. The Game Gear uses a Z80 to the Lynx's 6502 and has tile-based graphics where the Lynx uses a bitmapped display. The Game Gear is essentially a portable Sega Master System - a console that predates the design of the Lynx.

> There is also an amusing story about how Epyx's pitch to Nintendo of Japan went terribly wrong, though I can't find it now.

It's here: https://www.retrogamer.net/profiles/hardware/atari-lynx/

“We were the first non-Nintendo people to learn of the existence of the Nintendo Game Boy,” Needle says, recoiling even at the memory. “We were crushed. Joe was infuriated. The Nintendo boss left the room and we just sat there, wondering what to do next.”

RetroSpark··on Game Genie declassified: That summer I played 230 Game Boy games
There is a Game Genie code decoder/encoder here:

http://www.smspower.org/maxim/forumstuff/gamegenie.html

(This was designed for the Sega Game Gear version, but the Game Boy algorithm is the same.)

← PreviousPage 2 of 2