ccz80

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ccz80

ccz80 programming language


2 posters

    New IDE / Nuevo IDE

    avatar
    Dinoneno


    Posts : 115
    Join date : 2008-01-15
    Age : 54
    Location : Toledo

    New IDE / Nuevo IDE Empty New IDE / Nuevo IDE

    Post  Dinoneno Fri Jan 07, 2011 1:08 am

    Available new IDE version 2 with many improvements: color syntax highlighting, advanced search and replace, context menu, the more and more intuitive user settings, etc.

    Disponible nuevo IDE versión 2 con muchas mejoras: resaltado sintaxis con color, búsqueda y reemplazo avanzado, menú contextual, mayor y más intuitiva configuración por el usuario, etc.

    avatar
    poppichicken


    Posts : 37
    Join date : 2009-10-09

    New IDE / Nuevo IDE Empty Re: New IDE / Nuevo IDE

    Post  poppichicken Tue Feb 01, 2011 11:54 am

    Hi Dinoneno.

    Thanks for your continued work on ccz80.
    I don't use the IDE (I compile from the command line), but I am very interested in some of the changes in 3.1.0.

    "Allows you to specify constant values of type byte, word and string as an expression of constant operands."

    Can you please give an example of this?

    Thanks.
    avatar
    Dinoneno


    Posts : 115
    Join date : 2008-01-15
    Age : 54
    Location : Toledo

    New IDE / Nuevo IDE Empty Re: New IDE / Nuevo IDE

    Post  Dinoneno Tue Feb 01, 2011 10:49 pm

    Of course. So far when it required a value of type byte or word was necessary to specify a constant:

    array byte coordinates [100];

    Now you can do:

    byte array coordinates [50 * 2];

    This is most useful when using macros:

    define elements = 50; // define macro elements
    array byte coordinates[elements * 2];

    Another example:

    define value = 5;
    array byte table = { value, value * 2, value + 5, 10 / value };

    Another example using strings:

    define prefix = "Error code ";
    prints(prefix + "1");
    prints(prefix + "2");

    And another more:

    define value = 10;
    asm
    {
    "ld a," + value,
    "ld b," + value / 2,
    "add a,b"
    }

    I hope to give an idea of this new functionality.
    avatar
    poppichicken


    Posts : 37
    Join date : 2009-10-09

    New IDE / Nuevo IDE Empty Re: New IDE / Nuevo IDE

    Post  poppichicken Wed Feb 02, 2011 1:31 am

    Ah yes, that all makes perfect sense.
    It looks like very useful new functionality!
    Thanks for the explanation.

    Sponsored content


    New IDE / Nuevo IDE Empty Re: New IDE / Nuevo IDE

    Post  Sponsored content


      Current date/time is Mon May 13, 2024 12:03 pm