Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: MORE BUGS IN THE CC1M2.01?? Kategorie: C-Control I V1.2/2.0 (von Stefan Tappertzhofen, Homepage - 24.10.2004 19:25)
 Als Antwort auf MORE BUGS IN THE CC1M2.01?? von Windt H.J. - 24.10.2004 18:52

> 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

Bisherige Antworten:

Re: MORE BUGS IN THE CC1M2.01?? (von Achim - 26.10.2004 22:27)
    Re: MORE BUGS IN THE CC1M2.01?? (von Stefan Tappertzhofen - 1.11.2004 15:57)
Re: MORE BUGS IN THE CC1M2.01?? (von Windt H.J. - 25.10.2004 18:09)
Re: MORE BUGS IN THE CC1M2.01?? (von Henrik - 24.10.2004 20:08)
    Re: MORE BUGS IN THE CC1M2.01?? (von Stefan Tappertzhofen - 24.10.2004 21:24)