10 REM PC-BASIC test 
20 REM DEF FN recusrion error sequencing
30 DEF FNA(I%) = FNA(I%-1)
40 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
45 ON ERROR GOTO 100
50 PRINT#1, "start"
60 PRINT#1, FNA(32768)
70 PRINT#1, FNA("1")
80 PRINT#1, FNA(0)
90 END
100 PRINT#1, ERR, ERL
110 RESUME NEXT
