Game Boy Coding, anyone ?

Programming, for all ages and all languages.
srg

Re:Game Boy Coding, anyone ?

Post by srg »

Of couse the P4, Opteron etc can run the old 8086 DOS apps anyway (not counting timing problems).
srg_13

Re:Game Boy Coding, anyone ?

Post 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
Fixthestar248

Re:Game Boy Coding, anyone ?

Post by Fixthestar248 »

YEAH!!! I`ve found it once, but the computer locked up before I could put it in my favorites!
fdarkangel

Re:Game Boy Coding, anyone ?

Post by fdarkangel »

i'd suggest TONC for GBA programming info.
Dex4u

Re:Game Boy Coding, anyone ?

Post 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
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Game Boy Coding, anyone ?

Post 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 ...
Dex4u

Re:Game Boy Coding, anyone ?

Post 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.
Schol-R-LEA

Re:Game Boy Coding, anyone ?

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Game Boy Coding, anyone ?

Post 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.
parrot

Re:Game Boy Coding, anyone ?

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Game Boy Coding, anyone ?

Post 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
Last edited by Pype.Clicker on Tue Aug 13, 2019 5:57 am, edited 1 time in total.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Game Boy Coding, anyone ?

Post 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 :)
Dex4u

Re:Game Boy Coding, anyone ?

Post 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.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Game Boy Coding, anyone ?

Post by bubach »

Good work, we all need those little rewards (seeing some results) from time to time.. ;)
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Dex4u

Re:Game Boy Coding, anyone ?

Post 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
Post Reply