1

Voilà ce que j'ai pu voir dans la derniere version de TIGCC:
| #############################################################################
| Revision History
| #############################################################################
|
| $Log: gray.s,v $
| Revision 3.10 2002/04/05 11:34:23 tnussb
| (1) Resets now __D_plane2,__L_plane2 and __gray_dbl_offset at end of GrayOn()
| to make sure nothing happens if doublebuffer macros get called without
| setting a buffer first. Nevertheless NO program should call one of the
| doublebuffer macros without setting a buffer previously.
#######################
Est ce que qqn peut m'expliquer exactement quels sont les nouveautés,car dans la doc j'ai rien trouvé en ce qui concerne le double buff sad
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!

2

Tout ce que ça:
| (1) Resets now __D_plane2,__L_plane2 and __gray_dbl_offset at end of GrayOn()
| to make sure nothing happens if doublebuffer macros get called without
| setting a buffer first. Nevertheless NO program should call one of the | doublebuffer macros without setting a buffer previously.

change, c'est que ça ne plante pas si tu essayes d'utiliser un fonction du style GrayDBufToggle sans avoir appelé GrayDBufInit avant.

Sinon, pour une documentation complète du double-buffering, va voir http://tigcc.ticalc.org/doc/gray.html#GrayDBufInit.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

3

Ok merci, je l'avait pas trouver dans la docsad

Le probleme de votre routine, c'est que si on est sur une HW1, le 'GPlan' (pour reprendre le terme de XLib) est séparé en 2, ce qui implique que si je veux utiliser votre routine avec un acces direct, je ne peux le faire que sur les HW2sad
Consequence, je suis oblige de modifier votre routine, mais est ce que j'ai le droit?
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!

4

Je crois que oui, enfin je pensetongue

extrait de licence.txt:

"TIGCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version."

5

Fais attention: la seule façon d'être vraiment sûr que c'est possible de modifier, c'est de demander à Thomas Nussbaumer.
Il se peut que les routines de gray ne soient pas sous GPL...
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

6

Vu qu'il les a contribuées à TIGCCLIB, elles sont sous la licence de TIGCCLIB:
TIGCC Library Routines
Copyright (C) 2000-2001 Zeljko Juric, Thomas Nussbaumer, and
                        Kevin Kofler

This file is part of TIGCC.

TIGCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.

In addition to the permissions in the GNU General Public License, the
TIGCC Team gives you unlimited permission to link the compiled
versions of these files with other programs, and to distribute
those programs without any restriction coming from the use of this
file.  (The General Public License restrictions do apply in other
respects; for example, they cover modification of the files, and
distribution when not linked into another program.)

These files are distributed in the hope that they will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Donc tu as le droit de modifier gray.s à condition de ne pas diffuser une version modifiée sans ses sources. Mais change le nom de tous les symboles (labels et variables) pour éviter des conflits avec tigcc.a!

TiMad a écrit :
Le probleme de votre routine, c'est que si on est sur une HW1, le 'GPlan' (pour reprendre le terme de XLib) est séparé en 2, ce qui implique que si je veux utiliser votre routine avec un acces direct, je ne peux le faire que sur les HW2sad

Tu récupères l'adresse d'un plan à la fois tout bêtement. Je ne vois pas du tout le problème.
Si tes routines ont l'habitude de travailler avec un:
struct GPlan {
char plan0[3840];
char plan1[3840];
}

tu les changes pour travailler avec un:
struct GPlan {
char *plan0;
char *plan1;
}

à la place. En C, ça ne changera rien, et en assembleur, ça ne fait que quelques lignes à changer.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

7

Et si on sépare les 2 plans, c'est parce que ça économise 3840 octets de RAM!
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

8

Le probleme c'est que dans mes routines, je fais: 30*x(a0) et 3840+30*x(a0)..
ce qui ne peut pas se faire avec votre routine sous HW1sad
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!

9

Tu peux changer la fonction pour utiliser 30*x(a0) et 30*x(a1).
Ou alors tu modifies gray.s.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

10

Erf je vais pas modifier toutes mes foncions...

Bon j'ai essayer de modifier gray.asm..
et voila ce que j'ai comme probleme:

warning: TriGraph??)ignored

Puis quand je compile, le probleme c'est que ya lplus les grays sad
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!