Assembler and runtime for writing and testing programmable calculator code