u32 debuggerGetValue(u32 location, LocationType type)
static u32 debuggerGetValue(u32 location, LocationType type)
u32 debuggerGetValue(u32 location, LocationType type){  switch(type) {  case LOCATION_memory:    return debuggerReadMemory(location);  case LOCATION_register:    return reg[location].I;  case LOCATION_value:    return location;  }  return 0;}