1

quelle est la structure de base pour une library en ASM sous TIGCC car celle que j'utilisais sous Fargo ne fonctionne pas.
LinuX Powa (:

2

je crois qu'il faut que tu exporte le symbole _library
xdef _library
ou quelque chose comme ça....

puis que tu exporte toutes les fonctions...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

3

Déjà, il faut TIGCC 0.93 minimum (le lien pointe vers la bêta la plus récente).

Ensuite:
 include "doorsos.h"
 xdef _library
 xdef _ti89
 xdef _ti92plus
 xdef totolib[/i][i]@0000
 xdef totolib[/i][i]@0001
 xdef totolib[/i][i]@0002
 xdef totolib[/i][i]@0003

totolib[/i][i]@0000: jmp doorsos::ScreenClear
totolib[/i][i]@0001: rts
totolib[/i][i]@0002: illegal
totolib[/i][i]@0003: dc.b 'Hello, World!',0


ou:
 include "doorsos.h"
 xdef _library
 xdef _ti89
 xdef _ti92plus
 xdef totolib__0000
 xdef totolib__0001
 xdef totolib__0002
 xdef totolib__0003

totolib__0000: jmp doorsos::ScreenClear
totolib__0001: rts
totolib__0002: illegal
totolib__0003: dc.b 'Hello, World!',0

(symboles compatibles C).
[edit]Edité par Kevin Kofler le 09-02-2002 à 22:43:27[/edit]
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é

4

tiens !

le "__" a le même rôle que "@"
:D

5

Oui, parce qu'on ne peut pas mettre des @ dans des symboles en C.
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é

6

merci all
LinuX Powa (:

7

Et comment fait on pour la rendre executable style RVLIB car mon xdef _main ne fonctionne plus sad
LinuX Powa (:

8

Tu remplaces xdef _library par xdef _main. Un programme peut aussi exporter des fonctions.
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é