[zxspectrum] Re: renumerare le linee riga del basic ZX spectrum

  • From: Roberto Montaruli <rmontaruli@xxxxxxxxx>
  • To: zxspectrum@xxxxxxxxxxxxx
  • Date: Wed, 10 Mar 2004 01:54:54 -0800 (PST)

--- Andrea Gasparrini <andreagasparrini@xxxxxxxxxxx> wrote:
> Ciao,
> 
> Vorrei sapere se c'è un comando che renumera le linee riga del basic
> spectrum, sugli MSX era RENUM sul commodore era RENUMBER.

No, non esiste un comando di sistema gia' pronto che renumeri.
Pero' esistono un sacco di programmi che fanno questa funzione, alcuni
veramente ben fatti.

> 
> ES: 
> 
> 10 PRINT
> 15 LET A=A+1
> 30 PRINT A
> 
> Con RENUM diventa:
> 
> 10 PRINT
> 20 LET A=A+1
> 30 PRINT A

Attenzione che non e' sufficiente rinumerare i numeri di linea ma anche le
chiamate alle linee che fanno i vari GO TO, GO SUB, RESTORE, RUN, SAVE LINE,
etc...

es.
10 GO SUB 1000
20 GO SUB 2000
30 STOP
1000 REM ROUTINE uno
1010 RETURN
2000 REM ROUTINE due
2010 RETURN

diventa

10 GO SUB 40
20 GO SUB 60
30 STOP
40 REM ROUTINE uno
50 RETURN
60 REM ROUTINE due
70 RETURN


=====
//
//   In a world without walls and fences
//     you would not need windows and gates. 
//                               (Confucio)
==
P'n'P: http://maicrosoft.italiamac.com

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com

Other related posts: