make read_reg and read_mem work in monitor