1. Offtopic. BBC to QB
- Posted by Natasha Rudra <natasha.rudra at CYBERGAL.COM> Jul 27, 1999
- 431 views
- Last edited Jul 28, 1999
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
2. Re: Offtopic. BBC to QB
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jul 27, 1999
- 427 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
3. Re: Offtopic. BBC to QB
- Posted by Irv Mullins <irv at ELLIJAY.COM> Jul 27, 1999
- 411 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? > > Hi Natasha, Bernie gave lots of good advice. I can only add that, since you most likely have no way to actually _run_ the BBC programs, you will need to determine from reading the instructions, comments, and code, exactly what the program is supposed to do, and then outline the steps needed to make your new (QB or Eu) program do the same task. Don't be surprised, if while doing this, you think of different or better ways to accomplish the task. Once you have the steps outlined, you can ask here for ways to convert the steps into actual code. Regards, Irv Mullins
4. Re: Offtopic. BBC to QB
- Posted by Natasha Rudra <natasha.rudra at CYBERGAL.COM> Jul 28, 1999
- 466 views
- Last edited Jul 29, 1999
Thank you to Bernie Ryan and Irv Mullins, for your helpful advice. I was (naively) hoping that I could somehow just find and replace the differing commands, but evidently that's not possible. David Cuny usefully suggested a BBC clone, but I think doing as Bernie and Irving suggested would help expand my very limited programming knowledge. A simple breeding experiment is the shorter of the 2 programs, so I'll try that first. And I'm glad I'm on this list. Thanks once again, Natasha Rudra