INFO - FAQ - CC2-Forum - CCPro-Forum |
> I think that I may have found 2 more bugs in the CC1M2.01 system. > The example programs will demonstrate the bugs. > > Bug 1? > Try the program below: > > #start > beep 4,2,4 > jump > #jump_back > pause 300 > end > #jump > beep 10,2,4 > jump_back > > The compiler does not give any errors and the program works perfectly but in lines 3 and 9 I forgot a goto. This is not a bug of the controller but a bug of the compiler. Does the controller execute the "jump" command as "goto jump"? If so the compiler produced the correct code even if the given basic code was invalid. I never tried that but I would like to know what happens when you program something like that: define i byte i On some basic compilers this code is vaild on some other it's invalid. Anyway it doesn't make any sense at all. > Bug 2? > Using a terminal program try the program below: > > #start > print”HELLO” > print”HELLO” > pause 200 > end > > The terminal will give: > > ELLO > HELLO > > Where is the H? This could be probably not a bug of the controller but a "bug" of the seriell interface. Passender Link: CCBasic++ Programming Language Meine Homepage: http://www.fdos.de |
Antwort schreiben |