30

à mon avis, c'est ça qui est utilisé, vu qu'il ne faut pas transmettre à vitesse fulgurante...
Site : http://www.phareaway.com/
Membre du groupe Phare Away et webmaster du site

31

ba c'est bien ce qu'il me semble, surtout qu'il n'y a aucune mention des deux ports dans la source, donc c'est forcément ça, de tte façon, le nom parle de lui même...
ça a pas l'air trop sorcier à utiliser, le pointeur vers le buffer de transmission dans a7, et c'est bon... par contre pour la synchro, je sais pas trop... g pas regardé en détail, et là je dois aller bosser... il fait peut -être ça avec une autoint... (remarque ça merderait si les deux calcs n'étaient pas du même hw...)
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

32

et ça marche entre HW1 et HW2 ...

les fonctions doors::machin et truc, elle marchent pas quand on désactive les ints, aussi

m'enfin, ça peut valoir le coup de réessayer quand même ...
:D

33

arg, ué, c vrai merde...
ba sinon, ça doit pas être sorcier à faire...
tu fé un prog bidon qui appelle ces fonctions, tu le traces avec vti, et tu regarde les fonctions correspondantes d'ams...
ça doit pouvoir aider à se faire une idée
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

34

par contre j'ai trouvé un truc en cherchant (pas bcp) dans google:

> >> move.w #12,-(a7) ; 12 words to xmit
> >> pea hello(pc) ; pushes address of string to stack
> >> jsr doorsos::transmit ; transmits data
> >> lea 6(a7),a7 ; corrects stack
> >> jsr doorsos::flush_link

ça sert à quoi flush_link? qu'est ce que ça fait exactement?
la ti a un buffer matériel pour son link? flush_link envoie le contenu du buffer?
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

35

tien... y a ça aussi:

tios::reset_link equ _ROM_CALL_24C
tios::flush_link equ _ROM_CALL_24D
tios::receive equ _ROM_CALL_24F
tios::transmit equ _ROM_CALL_250
tios::tx_free equ _ROM_CALL_252
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

36

euh, y a ça aussi:

   jsr tios::reset_link        ;reset the link interface
   move.w   #13,-(a7)          ;Want to send 13 bytes.
   lea      linkdata(PC),a0    ;Pointer to data
   move.w   a0,-(a7)           ;pointer to data
   jsr tios::transmit          ;add data to transmit buffer
   add.l   #4,a7               ;fix stack pointer, pushed 2 bytes.
   jsr tios::flush_link        ;send it!
   jsr tios::reset_link
   jsr flib::idle_loop         ;wait for keypress
   rts
linkdata:
   dc.b  $89,$06,$07,$00,$0C,$00,$00,$00,$00,$01,$61,$6E,$00



et les routines de tetris, c'est ça:
;======================
SendByte:
 movem.l d0-d1/a0-a1,-(a7)
 move.b  d0,linkbuf
 move.w  #1,-(a7)
 pea	 linkbuf(PC)
 jsr tios::transmit
 addq	 #6,a7
 movem.l (a7)+,d0-d1/a0-a1
 rts

ReceiveByte:
 movem.l d1/a0-a1,-(a7)
 clr.b	 linkbuf
 move.w  #1,-(a7)
 pea	 linkbuf(PC)
 jsr tios::receive
 addq	 #6,a7
 clr.l	 d0
 move.b  linkbuf(PC),d0
 movem.l (a7)+,d1/a0-a1
 rts
;======================



autre version:
; Function SendByte
; In	    d0		Byte to send

puffer     dc.l     0
SendByte:
   movem.l d0-d7/a0-a6,-(a7)
   move.b  d0,puffer
   move.w  #1,-(a7)
   pea     puffer(PC)
   jsr     tios::transmit
   lea     6(a7),a7
   movem.l (a7)+,d0-d7/a0-a6
   rts
    
; ReceiveByte
; receives a byte from the I/O puffer
; Out       d1          received byte
;           d0          byte received (d0 = 0, no, d0 != 0, yes)?
ReceiveByte:
   movem.l d2-d7/a1-a6,-(a7)
   move.w  #1,-(a7)
   pea     puffer(PC)
   jsr     tios::receive
   lea     4(a7),a6
   move.b  puffer,d1
   movem.l (a7)+,d2-d7/a1-a6
   rts


j'ai aussi trouvé un pe de doc sur les deux rom calls transmit et receive:

;----------------------------------------------------------------------------
; transmit(char *buffer, int num)
;
; Function: inserts {num} bytes from {buffer} into link transmit buffer
;
; Return: No error: D0.L = $00000000
;                   A0   = data + num
;         Error:    D0.B = $FF
;                   A0   = data
;
; {num} must be in the range [$01...$80]
;
; Note: An error occurs if {num} is out of range or if there is not enough
;       room in the transmit buffer to insert {num} bytes.
;----------------------------------------------------------------------------
tios::transmit			equ	tios@0009

;----------------------------------------------------------------------------
; receive(char *buffer, int num)
;
; Function: reads at most {num} bytes into {buffer} from link receive buffer
;
; Return:  D0.L = number of bytes read
;          A0 = buffer + (number of bytes read)
;----------------------------------------------------------------------------
tios::receive			equ	tios@000A



et allez, un dernier:
(cuila est censé piloter une carte à la sortie de l'io pour allumer une led...)


   include "tios.h"
   xdef _main
   xdef _comment
   xdef _ti89

_main
   move.w   #1,-(a7)    ;We want to send 1 byte.
   lea      linkdata(PC),a0
   move.w   a0,-(a7)    ;'pointer' to data
   jsr tios::transmit
   add.l   #4,a7        ;fix stack pointer, pushed 2 bytes.
   jsr tios::flush_link
   rts

_comment:
   dc.b  "Both LED's ON",0
linkdata:
   dc.b  192
   end



boon, je vous laisse méditer là dessus, je regarderai ça plus en détail ce WE, là g du boulot sad
++
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

37

je regarderai ça ce WE aussi, g pas le temps, la ...

tiens, c fun ça :
le tios@000X passe en mailto grin
:D

38

euh, bon je m'y met

on va voir ce que je vais en tirer ...
:D

39

bonne chance wink
moi je m'y mettrai [peut-être] la semaine prochaine... trop de boulot en ce moment sad
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

40

voua, bah c pas gagné...

la question qui m'embête un peu, tout ça, ça marche avec ou sans les ints ???

sBibi> après samedi, ça la vie qui recommence smile
:D