Chip-8/SuperChip-8 emulator in AS3