Last active
November 18, 2020 01:04
-
-
Save WillSams/7e35b7da708540ae992e2d76880939b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup SGDK development toolchain environment on Linux | |
===================================================== | |
Note: using Gendev's setup (Andy Grind's fork at https://github.com/andwn/gendev). May take 30 minutes to an hour to build. | |
$ sudo apt install build-essential texinfo git | |
$ git clone https://github.com/andwn/gendev.git | |
$ cd gendev | |
$ make | |
Create Projects | |
================ | |
(Note: You will probably need to correct the GCC version listed near the top of the default makefile) | |
$ cd ~/Projects/megadrive | |
$ cp -r /opt/toolchains/gen/skeleton hello-world-md | |
$ cd hello-world-md | |
$ cat > main.c <<EOF | |
#include <genesis.h> | |
int main() { | |
VDP_drawText("Hello Genny World!", 10, 13); | |
while(1) { VDP_waitVSync(); } | |
return (0); | |
} | |
EOF | |
$ make | |
Test w/ DGen | |
================ | |
$ sudo apt-get install dgen | |
$ dgen out.bin | |
Debugging w/ DGen | |
================= | |
* TODO * | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment