qatsindio/6502 — pull request #2 by gbbr (2014-11-21 23:43:38+00:00)
Title: Simplified bit operations, cleaned up and added some case-switches

I hope I haven't broken anything. Let me know if you don't like anything.