There is no $LINK, there is no direct port I-O (as done in MS-DOS with INP/OUT), DEF SEG/PEEK-POKE are not used .. I think the PB/CC help file contains a section on this.. maybe if you ask PB Sales nicely, they will send you the help file or that section so you can decide just how painless converting your code will be.
Strangely enough, the biggest problem you might have is "scope": using PB/CC, all executable code must be within a procedure (a SUB or FUNCTION).. so if you haev a program with lots of vars shared across a lot of procedures, that will be a fair amount of work unless you make them all GLOBAL. (*shudder*)
Alan Earnshaw once published a 'tip' to handle this:
First, you recode your DOS program so it looks like this:
Code:
CALL MAIN END SUB MAIN ( ) ... END SUB ' all other subs and functions in your program go here
MCM
Leave a comment: