Saving 2 variables in flash

Hi
Please help me with this issue.
This is the part of sine wave generator with regulated amplitude and phase shift.
I am able to save only phase variable but not amplitude.
How to save both of them ?






v Serial.begin(9600);

timer_conf();
dma_conf();
dma_start();

init_wave();
EEPROM.read(0, (uint16*)&shift);
get_wave(shift);

}

void loop() {
process_key(digitalRead(phasep), &right);
process_key(digitalRead(phasen), &left);
process_key_amp(digitalRead(ampp), &up);
process_key_amp(digitalRead(ampn), &down);
delay(100);
/*Serial.println(shift);
EEPROM.write(0, shift);*/
}

void process_key(int val, struct debounce_info *k)
{
switch(k->state)
{
case DEBOUNCE_IDLE:
if(val == HIGH)
{
k->state = DEBOUNCE_ACTIVE;
k->start = millis();
}
break;

case DEBOUNCE_ACTIVE:
if(val == HIGH)
{
if(millis() - k->start > DEBOUNCE_DELAY)
{
shift += k->shift;
Serial.println("increasing");
Serial.println(shift);
Serial.println(k->shift);
get_wave(shift);

}
}
else
k->state = DEBOUNCE_IDLE;
EEPROM.write(0, shift);
Serial.println(shift);
break;
}
}