I went back to trying to program for the Android. I’m using the same book, Android Programming Tutorials by Mark Murphy, but where as I couldn’t get anything to work before, I’m getting good results now. I’m aiming for a Java Coco simulator for everything in the original Coco that makes sense for the Android. It’s a little like urbane basic. It now translates symbols, number variables, number literals, and string variables. Now that I’ve got everyone up to date, it’s back to work.
I’m back to working on my ml Urbane. I keep going back and rewriting what I have done so I don’t get very far. Oh well.
Super Disk Extended Color Basic compiled and/or c language. The final result will be SDECB functionality for nitros9 c. In addition to the c compiler that I mentioned in the last post, I am working on a c program to translate a small subset of urbane basic to c source.
My latest efforts lie in creating c functions for EC Basic in a strictly limited subset of c. I want to make it be possible to write itself in itself. I am presently writing a lexical analyzer on the PC. The next step will be to write a cross-parser between the PC and the coco. Then comes an interpreter for the coco. At that point I may want to add a cross-compiler and/or a coco compiler.
ECBasic 7B fixes several errors, provides an example of how to use it, and adds a binary save and load for the user’s object program. As usual it can be found here .
Version 7 is out. It is the working ml version. Names are a letter followed by any number of letters and digits. Labels are defined by a name followed by a colon at the beginning of a line. Names are stored as letter pairs in the source. The name itself is displayed on the screen. I was having unexplained results with Rainbow 1.6 on Windows 7 so I copied and pasted the individual files into Rainbow 1.4 on XP before I published them. Just move the folder called the version you want (probably ECBasic 7) into the Projects folder in the Rainbow IDE, and you should be able to open the project when you open Rainbow. As usual they can be found here. I was going to write a cross compiler next, but I think a more reasonable goad is to write a loader in the form of an assembler. It should cut down the wait time at the beginning of a run by a factor of three. And besides, it’s all I really need to write for my IDE for the CoCoNut program for the Palm Pilot.
Version 5 makes all variable characters significant by prefixing them with unique pairs of characters. Version 6 will put the ml routines in high logical memory, store only the unique pairs of characters in the basic program, and display only the original names when listing the program.
Labels can now follow any GOTO, GOSUB, THEN, ELSE, or RUN. Just unzip the folder of the version you want into the Rainbow IDE projects folder, and you are in business. The zip file can be found here. The next version will precede each three or more character variable name with a unique two letter pair, so each name will be significant. Just as the label was left in the executable for debugging, the whole variable name will remain.
I’ve developed a system for the Rainbow IDE to compile basic programs with labels instead of line numbers. Labels begin with :’ They must come at the beginning of the line or immediately after the goto or gosub. Nothing is allowed after the label. The labels are copied into the executable. There is a source.bas file created with line numbers added for finding errors. It uses ml to make the searches faster. The program runs faster than URBANE BASIC, but of course it doesn’t do nearly as much. Here it is. The next version will allow labels after any goto, gosub, then, else, or run.
My first computer was a TRS 80 Model I, but when the Color Computer by Radio Shack came out, I fell in love with it, and it has been my favorite ever since. I did a little stuff for the Palm Pilot, I was planning on doing a CoCo emulator for the Palm, but Márcio Migueletto de Andrade down in Brazil beat me, coconut but now that MESS has a really great CoCo emulator on the PC. I think I may switch back to programming for the CoCo. Just for fun and nostalgia. I’m a little disappointed with Yahoo’s tech support, so I’m gradually switching over to here from my Yahoo page which is http://www.coconutpalm.org