Inscription : 20 Août 2007, 18:21 Message(s) : 5002
Citer :
Apr 28 2008 version 2.0.2 -Avoid specify as source file the value "". -Avoid warning 'Constant not used' when it's used. -Corrections in expressions evaluation.
Inscription : 20 Août 2007, 18:21 Message(s) : 5002
je mets le changelog:
Citer :
Jan 11 2009 Compilador versión 2.0.4 - Fixed the evaluation of operator ! for values type word. - Added label __end_program at end of assembler code source generated to find out where the free space in memory.
Inscription : 20 Août 2007, 18:21 Message(s) : 5002
Citer :
Compiler version 2.0.5 - New option /include to specify paths to files to be included in the program. - Allowed the use of labels with the operators == and !=. - Allowed assembler undocumented instructions (using registers IXh, IXl, IYh, IYl and rotate/shift instructions). - If the parameter of the repeat command is set to 0 no loop is executed (previously it was executed 65536 times). - No runtime error when an element is omitted in a list separated by commas (for instance in function parameters). - Optimization to remove function parameters from the stack after its execution. - Improvements in multiplication, division and modulo operations and some imprevements to optimize the code. - Improvements in the assembler source code generated when using the option /asm. - A message is shown when the compilation is finished without errors.
Inscription : 20 Août 2007, 18:21 Message(s) : 5002
Citer :
Compiler ccz80 version 2.0.7: allow clause register for one parameter functions passing the parameter value in register, not in stack. Optimization of standard library and specific libraries for each computer for use clause register. Updated sintax files for editors for new clause. Updated documentation for clause register. Fixed some errors in libraries.
Inscription : 20 Août 2007, 18:21 Message(s) : 5002
Citer :
Feb 15 2010 - New compiler version ccz80 v2.0.8: - Allow initializate a text string with string instruction. - Fixed functions printf, fprintf and lprinf in libraries for Amstrad CPC for write negatives real numbers. - Show information about the binary file created.
La principale nouveauté est qu'il vous permet de définir des macros pour les utiliser dans n'importe quelle expression. Cela permet par exemple d'utiliser des tables avec des index, des structures, des tables de structures, définir des fonctions dont le contenu est une formule, et d'autres utilisations.
Exemple d'utilisation des tables:
include "spectrum.ccz80"; // ou bien "cpc464.ccz80" ou "msx.ccz80" define longueur = 10; array byte donnees[longueur]; define tableau(i) = (*(donnees + i)); byte n; for (n = 0; n < longueur ; ++n) tableau (n) = n + 1; for (n = 0; n < longueur ; ++n) { printb(tableau (n)); printc(' '); } pause(0); // Pour le CPC ou MSX effacer cette ligne return;
Exemple de formule de fonction:
include "spectrum.ccz80"; // ou bien "cpc464.ccz80" ou "msx.ccz80" define moyenne(a, b, c) = ((a + b + c) / 3); printw(moyenne(1, 7, 10)); pause(0); // Pour le CPC ou MSX effacer cette ligne return;
Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 11 invité(s)
Vous ne pouvez pas publier de nouveaux sujets dans ce forum Vous ne pouvez pas répondre aux sujets dans ce forum Vous ne pouvez pas éditer vos messages dans ce forum Vous ne pouvez pas supprimer vos messages dans ce forum Vous ne pouvez pas insérer de pièces jointes dans ce forum