gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Multiplayer Link

#10040 - Daniel Andersen - Mon Aug 25, 2003 11:51 am

I've been trying to implement multiplayer link with interrupts. What I've done is basicly this: in my interrupt handler I've handled incoming data and setting up outgoing data for the next send. Then, at the very last, I've toggled the start-bit of the link. The link should'nt be busy, so this should work... but it doesn't; it doesn't send anything.

I've come to the conclusion that one cannot initialize a send from within a interrupt... is that right? What I've done is moving the send away from the interrupt rutine and that is working perfectly fine, but the other method is surely much nicer!

#10055 - johnny_north - Mon Aug 25, 2003 9:58 pm

I can't directly answer your question, but if you haven't looked into the multiplayer code at the SGADE site I'd recommend it. Jaap Sutter claims his code conforms to N's standards (whatever that means) and is stable.

I'm preparing to implement a 2 player example myself. I'd be interested to see what you've accomplished if you care share it.

#10062 - Daniel Andersen - Tue Aug 26, 2003 8:56 am

I'll share it as soon as I get it to work! ;-)

By the way, I couldn't find the information from Jaap Sutter...

#10092 - johnny_north - Tue Aug 26, 2003 7:38 pm

You find the download for the SGADE files at http://www.suddenpresence.com/sgade/download.html

The routines are included in somultiplayer.h and somultiplayer.c