OWbasic has most of the BASIC commands such as proc, gosub, conditional if/then statements and some others for graphing.