Finish a10p1 and a10p2 - basic code generation.