Mairtrus released a Tetris game for Genesis/Megadrive called Tetrex. It comes with fully commented BasiEgaXorz source code.

http://devster.proboards22.com/index.cgi?board=basiegaxorz&action=display&thread=401