1

bon ca fait bien une semaine que je cherche ce qui va pas la dedans ....
lea.l donne(pc),a0 
 move.w #4,-(a7) 
 move.b (a0),-(a7)
 clr.l -(a7)
 move.l $C8,a0
 move.l DrawChar*4(a0),a0
 jsr (a0)
 addq.l #8,(a7)
 move.l $c8,a0
 move.l ngetchx*4(a0),a0
 jsr (a0)
 
donne:
 dc.b 48,0


pourquoi j'ai pas 48 dans (a0) ??????
NTW !!!!!

2

bon je vais simplifier tous ca : pour stocker des données, on met un truc dans ce genre en fin de fichier :
donne:
 dc.b 48,0


et pour y acceder on fait comment ???
ne(pc),a0pourquoi lea.l don ne fonctionnetil pas ?
NTW !!!!!

3

c "move.b (a0),-(a7)" qui est équivalent à "subq.w #2,a7; move.b (a0),(a7)" ...

« The biggest civil liberty of all is not to be killed by a terrorist. » (Geoff Hoon, ministre des transports anglais)

4

5

move.b donne(pc),-(a7) ferait exactement la même chose embarrassed

« The biggest civil liberty of all is not to be killed by a terrorist. » (Geoff Hoon, ministre des transports anglais)

6

7

eu vous repondez pas vraiment a ma question la ...
quand je fais ceci :
lea.l donne(pc),a0

dans a0, j'ai tou sauf un poiteur poitant sur mes données , pk ?
NTW !!!!!

8

ben si... quel est ton pb ?

« The biggest civil liberty of all is not to be killed by a terrorist. » (Geoff Hoon, ministre des transports anglais)

9

et ben non !!!
donne: dc.b 48,0
quand je fais ceci :  include "OS.h"
 xdef _ti89
 xdef _nostub
 xdef _main

_main:
 move.l a6,-(a7)
 move.l $C8,a6
 lea.l donne(pc),a0  
 move.w #4,-(a7)  
 move.b (a0),-(a7) 
 clr.l -(a7) 
 move.l DrawChar*4(a6),a0 
 jsr (a0) 
 addq.l #8,a7
 move.l ngetchx*4(a6),a0 
 jsr (a0) 
 move.l (a7)+,a6
 rts 
 

et ba j'ai l'equivalent du caractere ascii 3
NTW !!!!!

10

matthieu :
bon je vais simplifier tous ca : pour stocker des données, on met un truc dans ce genre en fin de fichier :
donne:
 dc.b 48,0


et pour y acceder on fait comment ???
ne(pc),a0pourquoi lea.l don ne fonctionnetil pas ?
Pollux :
c "move.b (a0),-(a7)" qui est équivalent à "subq.w #2,a7; move.b (a0),(a7)" ...


...

Or ce que DrawChar attend, c'est "subq.w #2,a7; move.b (a0),1(a7)"

« The biggest civil liberty of all is not to be killed by a terrorist. » (Geoff Hoon, ministre des transports anglais)

11

oh ca dechiire

merci bcouuup
NTW !!!!!