Finally, it's drawn and playable! Thanks to sulix for a hint about 16-bit wrapping. It's not done, though.