Re: Offtopic. BBC to QB
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jul 27, 1999
- 428 views
On Tue, 27 Jul 1999 21:50:08 +0800, Natasha Rudra <natasha.rudra at CYBERGAL.COM> wrote: >Hello, >Complete novice here, trying to learn Qbasic as well as Eu. > >My biology textbook includes a couple of programs written in BBC >Basic. I'd like to run these, but don't know how to "translate" the >BBC commands to QB. Could anyone help? > >Any pointers will be much appreciated. Thanks. >Natasha Rudra >Penang >Malaysia British Broadcasting Corp Basic was written for CP/M on the Z80 (1983) BBCBASIC QBASIC EUPHORIA DEFPROCtest SUB test procedure test() do something here do something here do something here ENDPROC END SUB end procedure NEXT NEXT i = i + 1 GOTO GOTO not allowed in Eu CALL CALL calling machine code is possible see documents LOCAL none none line-numbers line-numbers/labels none GOSUB(label) GOSUB(line-no./labels) test() -- goto a test sub RETURN RETURN automatic This is only some of the differences. It would be too dificult to translate line for line from 1 language to another. What you must do is sit down an follow every step in the BBCBASIC and get an understanding of how the program performs each step. Once you understand how the program works it will become apparent how to write the program in your new language. I would recomend using Euphoria because its easy to learn and has lots of examples also anyone on this list would glad to help you. Good luck with your biology studies Bernie