QB64 Phoenix Edition
CBASIC Conversion Problem - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: QBJS, BAM, and Other BASICs (https://qb64phoenix.com/forum/forumdisplay.php?fid=50)
+--- Thread: CBASIC Conversion Problem (/showthread.php?tid=4046)



CBASIC Conversion Problem - eoredson - 10-29-2025

Hi,

I am having a problem converting this old '70s project to QB64PE..

Is there a simple way to do so!?

Erik.

Payroll.zip:
  Lines: 29,324
  Files: 153
  Bytes: 763,695


RE: CBASIC Conversion Problem - ahenry3068 - 10-29-2025

A **CBASIC** to QBasic convertor is probably possible to do.   But unless someone has one already written somewhere you have your work cut out for you.  

( POSSIBLE <> EASY/PRACTICAL )  I always like to make that clear !


If you have more CBASIC code you want to convert then it might be worth writing a convertor.  You'll need an indepth knowledge of both BASIC syntax's to do that !.  

If this is the only thing you need to convert then a manual file by file conversion will probably be a little quicker than writing a general purpose convertor.   Again you will need knowledge of BOTH syntax's !


RE: CBASIC Conversion Problem - Jack - 10-29-2025

in order to give the translation a try you will need the following
CBASIC 2 manual http://cini.classiccmp.org/pdf/Digital%20Research/CBASIC%20Version%202.0%20Language%20Reference%20Manual.pdf
and http://www.cpm.z80.de/manuals/cbasic-m.pdf
open source CBASIC compiler for Linux https://github.com/rimio/cbasic
here are binaries for CB80 CP/M https://github.com/rlauzon54/RC2014CPM which you might be able to run with ntvcm https://github.com/davidly/ntvcm

some more CP/M compilers https://github.com/davidly/cpm_compilers


RE: CBASIC Conversion Problem - Jack - 10-29-2025

I tried building cbasic but no luck, you probably need a distro from 12 years ago, I don't know if I have a VM that old with all the needed tools/utilities