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.

ASM > MultiBoot problem

#25276 - ProblemBaby - Thu Aug 19, 2004 10:41 pm

Ive problems to send the multiboot data to the slaves
here is the most interesting peace of code:

Code:

      LDR r0, =0x6100
      ORR r0, r6     @ r6 = Slave Bits
      BL Transfer
      
      LDR r4, =Client   @ Client is a program
      LDRB r0, [r4, #0]
      LSL r0, #8
      LDRB r1, [r4, #1]
      ORR r0, r1
      BL MultiPlayer_Transfer
      LDRH r0, [r3, #REG_SIOMULTI1]
      POP { r4, r5, r6, pc }  @ return and print out the value to see if it was transfered


The code runs amazing when Iam tryinf to find the slaves
the first transfer in this peace of code works also
but when I try to transfer header data it looks up (on hardware it doesnt even return)
not at no$gba, but in no$gba the rom-image crashed when i try to call swi 0x21.

I cant find out what the problem is. But I think this should be enough plz repost if you want to some more code!

Thanks in advance

#25312 - ProblemBaby - Fri Aug 20, 2004 1:38 pm

IF someone have done such code in C or ASM that works in both no$gba and at hardware it would be nice to see!

#25317 - f(DarkAngel) - Fri Aug 20, 2004 2:11 pm

Can you post the full code? It doesn't look poosible to say where error is with a code that just does r0 = ([byte r4]<<8) | [byte r4]

Both pineight and devrs have multiboot code.
_________________
death scream...

#25341 - ProblemBaby - Fri Aug 20, 2004 11:46 pm

I didnt find any at pineight
however the devrs version doesnt seems to work at no$gba!
So...
I tried a commercial ROM (That I own) at it worked nice with no$gba so it seems like that isnt the best mb code neither.
anyway if anyone have succeeded to write code that works in no$gba please show me the source!

thanks

#25346 - dagamer34 - Sat Aug 21, 2004 2:20 am

ProblemBaby wrote:
I didnt find any at pineight
however the devrs version doesnt seems to work at no$gba!
So...
I tried a commercial ROM (That I own) at it worked nice with no$gba so it seems like that isnt the best mb code neither.
anyway if anyone have succeeded to write code that works in no$gba please show me the source!

thanks


Are you sure you set it up correctly? The emulator options really do matter when you are using no$GBA.
_________________
Little kids and Playstation 2's don't mix. :(

#25351 - ProblemBaby - Sat Aug 21, 2004 10:14 am

The commercial rom worked with the same setting.

#25360 - dagamer34 - Sat Aug 21, 2004 4:19 pm

ProblemBaby wrote:
The commercial rom worked with the same setting.


Which one did you use? Are you sure it was a single-pak game?
_________________
Little kids and Playstation 2's don't mix. :(

#25364 - ProblemBaby - Sat Aug 21, 2004 5:00 pm

Kirby's adventure, nightmare in dreamland

Yes Ive played it before on hardware single pak with a friend.