small fix for lap.c
wrap up of MMIO register implemenation