working on register map

need to finish register map. calc and edge.