Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
/ gba-dev Public archive

Programming for the Nintendo Game Boy Advance

Notifications You must be signed in to change notification settings

crawfxrd/gba-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

untitled

Embedded development targeting the Nintendo Game Boy Advance.

Dependencies

Building

The DEVKITPRO and DEVKITARM environment variables must be set.

./configure.sh -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build/

If a build type is not specified, CMake is configured to produce a debug build.

Running

Pass the ELF file or GBA ROM to mGBA. If using the SDL version of mGBA, pass a viewport size option for a better viewing experience.

mgba -2 ./build/untitled.gba

Debugging

Run a debug build with a debug session. mGBA will wait for a connection on the localhost port 2345.

mgba -g ./build/untitled

In another window, attach to the session. The file .gdbinit specifies the binary to load debug symbols from and the remote target. GDB must be configured to allow loading this file (local-gdbinit, safe-path).

$ gdb -q -iex "set auto-load safe-path ."
0x00000000 in ?? ()
(gdb) cont
Continuing.

License

This software is made available under the terms of the Mozilla Public License, version 2.0. See LICENSE for details.

About

Programming for the Nintendo Game Boy Advance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published