write a calculator and use register to calculate by ada