Move bytecode implementations into lib/asm (follow-up to #75)