#61758 - The_Perfection - Wed Nov 23, 2005 3:36 am
A multi-task program would be great in one of my concepts and one of my friend's already functional game of Bejeweled. This would be great if there were one that was user-friendly, but if not, what should we do?
Would it be possible to make a multi-task program if there is not one?
#61761 - tepples - Wed Nov 23, 2005 3:38 am
What capabilities do you want out of a multi-task program? Do you want multiple programs to be able to share the CPU time and the display and the sound, sending input to the frontmost task's layer? Either way, you're going to have to write programs that are specifically aware of your multi-task system.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#61805 - Miked0801 - Wed Nov 23, 2005 7:59 pm
GBA != Windows. Please follow some of the others' advice and go check out some of the tutorials.
#61852 - sgeos - Thu Nov 24, 2005 8:09 am
The gba doesn't have an OS. Anything not directly handled in hardware (GPU, DMA, interrupts, BIOS) has to be hand written.
-Brendan
#62258 - thegamefreak0134 - Mon Nov 28, 2005 7:54 pm
DoYouHowDo friend. I would recommend creating sort of a function that can, based on an array value, carry out a command. Then, your multitasking mask cound pass down the arrays of your programs and handle commands from them one at a time. The downside here is that you almost have to create your own language for this to work. You could set it up with a multidimentional array where dimension 1 handles the actual command and dimension 2+ and onward handles variables passed to the command. Your multitask function would do the work of decoding the crud and excecuting the commands, based on the array values.
Then, all you have to do is set up a compiler to write the arrays for you, using your own names for commands and such.
Yeah, I know, it's not easy my method, but at least it would work. It would also be rather slow...
_________________
What if the hokey-pokey really is what it's all about?
[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]
#62264 - Miked0801 - Mon Nov 28, 2005 8:21 pm
Check out Finite State Machines for an example of how to do this :)