Ok, I think, that most of you, who have been playing with BASIC (and expetially X-BASIC) have already had this situation:
Program hanged, your MSX does not respond to keyboard and everything to do is to push that reset button... You can usually prevent this by enabling soft reset (POKE &HFBB0,1) but always even that does not work.
At this point people usually remember program named OLD, that is made to save your ass in this kind of situations. Only problem is, that you usually really can't find it when you most need it!!!
I anyway managed to find general solution to this problem that is even easy to remember!
- If there is disk in drive, remove it
- Press that reset button
- Wait BASIC to start
- Put formatted disk into drive.
- Type:
POKE &H8002,128
SAVE"TEMP"
LOAD"TEMP"
SAVE"TEMP",A
LOAD"TEMP"
SAVE"DEARPROG.BAS"
KILL"TEMP"
- Send greetings to NYYRIKKI as he has just saved your work.