The first part is definitely the PS1 Final Fantasy 7 title, the second is an Amiga demo track I just can't quite grasp... Either way, interesting work mate.
Ah yes, Desert Dream it was. Still, listen closely to the Final Fantasy VII title - and compare it to you second riff (the one that deviates from the melody) - it is pretty much exactly the main FF7 riff. Probably played it without even noticing, it's sometimes a state of subconscious melodies hanging in there - it happens to me too.