Page 2 of 3

Re:Game Boy Coding, anyone ?

Posted: Sat Jan 21, 2006 4:40 pm
by srg
Of couse the P4, Opteron etc can run the old 8086 DOS apps anyway (not counting timing problems).

Re:Game Boy Coding, anyone ?

Posted: Sun Jan 22, 2006 5:52 am
by srg_13
hckr83 wrote: A full, publishing quality ebook on programming the gameboyadvance
it is very, very good im at chapter 4 and have made my own little fill screen and other not so useful things
and heres the best part, its FREE!
http://www.jharbour.com/gameboy/default.aspx

it actually was going to be a good book and then legal problems hit so instead he made it an ebook
I've read the first chapter, and it looks good! I'll read it when I have some more time...

-Stephen

Re:Game Boy Coding, anyone ?

Posted: Sun Jan 22, 2006 9:30 am
by Fixthestar248
YEAH!!! I`ve found it once, but the computer locked up before I could put it in my favorites!

Re:Game Boy Coding, anyone ?

Posted: Tue Jan 24, 2006 8:06 am
by fdarkangel
i'd suggest TONC for GBA programming info.

Re:Game Boy Coding, anyone ?

Posted: Wed Feb 08, 2006 3:32 pm
by Dex4u
I have just got a GP2x, if you do not know what these are here is some info : http://www.gbax.com/

Basically they are a handheld like the DS or PSP, have 2 ARM9 chips ( similar to the DS), but the best is they are open source, even have linux as standard, come with video player, music player, loads od games and emulators including nes, snes, GBA, mame, and BOCHS.
Even got my OS running in BOCHS on 8).

As they use the same chip as the DS, any thing learnt on GP2x will help DS programmers, so i will post anything interesting info, as i also have GBA and DS.

Some images:
http://dex.7.forumer.com/viewtopic.php?p=1821#1821

Re:Game Boy Coding, anyone ?

Posted: Thu Jun 15, 2006 9:37 am
by Pype.Clicker
http://tobw.net/dswiki/index.php?title= ... _for_Linux
http://forum.gbadev.org/viewtopic.php?p=70140#70140
http://masscat.afraid.org/ninds/wifi_apps.php

a wiki about nDS programming ... a step-by-step guide to run your own binaries using wifi-download, even from Linux ... neat. i feel like i'm going to do ds-deving after all ...

Re:Game Boy Coding, anyone ?

Posted: Thu Jun 15, 2006 5:29 pm
by Dex4u
Thanks for the link :).
Theres a handheld part to Dex4u's forum with some good links etc.
http://jas2o.forthworks.com/dexforum/in ... ?board=6.0
Most of the info is by jas2o.

Re:Game Boy Coding, anyone ?

Posted: Thu Jun 15, 2006 5:48 pm
by Schol-R-LEA
On the web site for The Wotch: My Sister, Myself (a fan-written game for the webcomic The Wotch, officially endorsed by the series authors but not a Nintendo-authorized product) there is a "Quick GBA Programming Intro" which might be of interest.

Re:Game Boy Coding, anyone ?

Posted: Fri Jun 16, 2006 8:22 am
by Pype.Clicker
Dex wrote: Thanks for the link :).
Theres a handheld part to Dex4u's forum with some good links etc.
http://jas2o.forthworks.com/dexforum/in ... ?board=6.0
Most of the info is by jas2o.
thanks. I'll have a look... i'm still confused with those "passme" things etc. so if i can find a place to chat with someone a bit more "seasoned" in DS-deving, it'll be great.

Re:Game Boy Coding, anyone ?

Posted: Sun Jun 25, 2006 8:56 am
by parrot
I'm in the DSDev scene ATM, I understand what the majority of the hardware is and what software you need to get started. I'm in #dsdev on EFNet most of the time.

Re:Game Boy Coding, anyone ?

Posted: Fri Aug 25, 2006 2:43 am
by Pype.Clicker
Popping again. I now have the extra hardware to run homebrew. Super card and passcard 3. All i need to run my sprite-* software on it. That feels great to write code that works and that i can show to people (ever tried to show a round-robin scheduler or a module loader to your relatives, anyone :P)

For those who are interested, there are a few posts about it on my blog, some of them are even translated in english ;) ... For those who wrote DS code, check out my blog marks (see my signature) to check what resources i've found so far ...

Oh, and i managed to write data to the SD flash card yesterday. Very exciting ! ... Almost as much as the time i first managed to use paging on x86 ;D

Image

Re:Game Boy Coding, anyone ?

Posted: Fri Aug 25, 2006 9:55 am
by Candy
Pype.Clicker wrote: That feels great to write code that works and that i can show to people (ever tried to show a round-robin scheduler or a module loader to your relatives, anyone :P)
Yes. Seems to reduce my obligation with relatives to visit them, so it's pretty useful :)

Re:Game Boy Coding, anyone ?

Posted: Sat Aug 26, 2006 4:25 pm
by Dex4u
That so cool i just had to log in and congratulate you on your great work 8).
I am trying to learn ARM assembly and use a untested ARM assembler, so i am sticking to learning it on GBA, which is more programmer friendly and has more info.
But to code in asm for the, ds and gp2x is my goal.

Re:Game Boy Coding, anyone ?

Posted: Sat Aug 26, 2006 6:32 pm
by bubach
Good work, we all need those little rewards (seeing some results) from time to time.. ;)

Re:Game Boy Coding, anyone ?

Posted: Tue Aug 29, 2006 2:29 pm
by Dex4u
Here is a simple GBA demo, code with fasmarm.

Code: Select all

; GBA Header and test prog by Dex, Coded with FasmARM.
; c:\fasmarm test.asm test.gba
format binary
org   0         ; code starts at offset 0.
use32            ; use 32-bit code.

    b    rom_start
NintendoLogo:
    db    0,0,0,0,0,0,0,0,0,0   ; Nintendo Logo space(156 bytes).
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0,0,0,0,0
    db    0,0,0,0,0,0
GameTitle:
    db    "TEAM DEX4U  "        ; Game Title (12 bytes).
GameCode:
    db    "1234"                ; Game Code (4 bytes).
MakerCode:
    db    "_$"                  ; Maker Code (2 bytes).
FixedValue:
    db    0x96                  ; Fixed value (1 byte).
MainUnit:
    db    0                     ; Main unit code (1 byte).
DeviceType:
    db    0                     ; Device Type (1 byte).
ReservedBytes: 
    db    0,0,0,0,0,0,0         ; Reserved (7 bytes)
SoftwareVersion:  
    db    0                     ; Software version (1 byte).
ComplementCheck:
    db    0                     ; Complement check (1 byte).
Reserved2:
    db    0,0                   ; Reserved (2 bytes).

align 4

;********************************;
; Rom start.                     ;
;********************************;
rom_start:  
   mov r0, 0x4000000
   mov r1, 0x400
   add r1, r1, 3
   str r1, [r0]

   mov r0, 0x6000000
   mov r1, 0xff
   mov r2, 0x9600
loop1:
   strh r1, [r0], 2
   subs r2, r2, 1
   bne loop1

LetsLoop:
   b LetsLoop

times 20000- ($-0)  db 0
I am porting Dex4u OS, to ARM with fasmarm ;).
http://www.dex4u.com/images/gbademo.jpg