diff --git a/Border/de10nano-dark.sgb b/Border/de10nano-dark.sgb new file mode 100644 index 0000000..a6fa58f Binary files /dev/null and b/Border/de10nano-dark.sgb differ diff --git a/Border/de10nano.sgb b/Border/de10nano.sgb new file mode 100644 index 0000000..e7e2bb5 Binary files /dev/null and b/Border/de10nano.sgb differ diff --git a/Border/misterkun-green.sgb b/Border/misterkun-green.sgb new file mode 100644 index 0000000..be6c7de Binary files /dev/null and b/Border/misterkun-green.sgb differ diff --git a/Border/misterkun-grey.sgb b/Border/misterkun-grey.sgb new file mode 100644 index 0000000..2e88ba3 Binary files /dev/null and b/Border/misterkun-grey.sgb differ diff --git a/Border/misterkun-purple.sgb b/Border/misterkun-purple.sgb new file mode 100644 index 0000000..01e7617 Binary files /dev/null and b/Border/misterkun-purple.sgb differ diff --git a/Border/misterkun-red.sgb b/Border/misterkun-red.sgb new file mode 100644 index 0000000..610b172 Binary files /dev/null and b/Border/misterkun-red.sgb differ diff --git a/Border/misterkun_dracula.sgb b/Border/misterkun_dracula.sgb new file mode 100644 index 0000000..fe8eec4 Binary files /dev/null and b/Border/misterkun_dracula.sgb differ diff --git a/Palette/Default/Andrade.gbp b/Palette/Default/Andrade.gbp new file mode 100644 index 0000000..0c6d558 Binary files /dev/null and b/Palette/Default/Andrade.gbp differ diff --git a/Palette/Default/Biverted.gbp b/Palette/Default/Biverted.gbp new file mode 100644 index 0000000..f90bfa0 Binary files /dev/null and b/Palette/Default/Biverted.gbp differ diff --git a/Palette/Default/Chocolate.gbp b/Palette/Default/Chocolate.gbp new file mode 100644 index 0000000..02b235f Binary files /dev/null and b/Palette/Default/Chocolate.gbp differ diff --git a/Palette/Default/DMG.gbp b/Palette/Default/DMG.gbp new file mode 100644 index 0000000..f2c1732 Binary files /dev/null and b/Palette/Default/DMG.gbp differ diff --git a/Palette/Default/GrafxGray.gbp b/Palette/Default/GrafxGray.gbp new file mode 100644 index 0000000..11b906c Binary files /dev/null and b/Palette/Default/GrafxGray.gbp differ diff --git a/Palette/Default/GrafxGreen.gbp b/Palette/Default/GrafxGreen.gbp new file mode 100644 index 0000000..089c8f9 Binary files /dev/null and b/Palette/Default/GrafxGreen.gbp differ diff --git a/Palette/Default/KidIcarus.gbp b/Palette/Default/KidIcarus.gbp new file mode 100644 index 0000000..718d797 Binary files /dev/null and b/Palette/Default/KidIcarus.gbp differ diff --git a/Palette/Default/Kirby.gbp b/Palette/Default/Kirby.gbp new file mode 100644 index 0000000..7b66072 Binary files /dev/null and b/Palette/Default/Kirby.gbp differ diff --git a/Palette/Default/LinksAwakening.gbp b/Palette/Default/LinksAwakening.gbp new file mode 100644 index 0000000..8496bc1 Binary files /dev/null and b/Palette/Default/LinksAwakening.gbp differ diff --git a/Palette/Default/MegaManV.gbp b/Palette/Default/MegaManV.gbp new file mode 100644 index 0000000..98bdbeb Binary files /dev/null and b/Palette/Default/MegaManV.gbp differ diff --git a/Palette/Default/MetroidII.gbp b/Palette/Default/MetroidII.gbp new file mode 100644 index 0000000..f2b6cce Binary files /dev/null and b/Palette/Default/MetroidII.gbp differ diff --git a/Palette/Default/PJ.gbp b/Palette/Default/PJ.gbp new file mode 100644 index 0000000..973fbce Binary files /dev/null and b/Palette/Default/PJ.gbp differ diff --git a/Palette/Default/Pastel.gbp b/Palette/Default/Pastel.gbp new file mode 100644 index 0000000..655496c Binary files /dev/null and b/Palette/Default/Pastel.gbp differ diff --git a/Palette/Default/Pokemon.gbp b/Palette/Default/Pokemon.gbp new file mode 100644 index 0000000..10309ca Binary files /dev/null and b/Palette/Default/Pokemon.gbp differ diff --git a/Palette/Default/Red.gbp b/Palette/Default/Red.gbp new file mode 100644 index 0000000..603ba59 Binary files /dev/null and b/Palette/Default/Red.gbp differ diff --git a/Palette/Default/SGBDefault.gbp b/Palette/Default/SGBDefault.gbp new file mode 100644 index 0000000..6c3f6c1 Binary files /dev/null and b/Palette/Default/SGBDefault.gbp differ diff --git a/Palette/Default/SML2.gbp b/Palette/Default/SML2.gbp new file mode 100644 index 0000000..cb6f3a3 Binary files /dev/null and b/Palette/Default/SML2.gbp differ diff --git a/Palette/Default/Sameboy.gbp b/Palette/Default/Sameboy.gbp new file mode 100644 index 0000000..cc0458d Binary files /dev/null and b/Palette/Default/Sameboy.gbp differ diff --git a/Palette/Default/Yellow.gbp b/Palette/Default/Yellow.gbp new file mode 100644 index 0000000..418b508 Binary files /dev/null and b/Palette/Default/Yellow.gbp differ diff --git a/Palette/Extra/Angry Volcano.gbp b/Palette/Extra/Angry Volcano.gbp new file mode 100644 index 0000000..b12ffc0 Binary files /dev/null and b/Palette/Extra/Angry Volcano.gbp differ diff --git a/Palette/Extra/Avalon.gbp b/Palette/Extra/Avalon.gbp new file mode 100644 index 0000000..de07a50 Binary files /dev/null and b/Palette/Extra/Avalon.gbp differ diff --git a/Palette/Extra/Bicycle.gbp b/Palette/Extra/Bicycle.gbp new file mode 100644 index 0000000..62ff6c7 Binary files /dev/null and b/Palette/Extra/Bicycle.gbp differ diff --git a/Palette/Extra/Blk Aqu4.gbp b/Palette/Extra/Blk Aqu4.gbp new file mode 100644 index 0000000..69a64fe Binary files /dev/null and b/Palette/Extra/Blk Aqu4.gbp differ diff --git a/Palette/Extra/Blue Gameboy.gbp b/Palette/Extra/Blue Gameboy.gbp new file mode 100644 index 0000000..f5a48c3 Binary files /dev/null and b/Palette/Extra/Blue Gameboy.gbp differ diff --git a/Palette/Extra/Blue Seni.gbp b/Palette/Extra/Blue Seni.gbp new file mode 100644 index 0000000..a32ff13 Binary files /dev/null and b/Palette/Extra/Blue Seni.gbp differ diff --git a/Palette/Extra/Cave4.gbp b/Palette/Extra/Cave4.gbp new file mode 100644 index 0000000..dc8008e Binary files /dev/null and b/Palette/Extra/Cave4.gbp differ diff --git a/Palette/Extra/Christmas.gbp b/Palette/Extra/Christmas.gbp new file mode 100644 index 0000000..1be5d93 Binary files /dev/null and b/Palette/Extra/Christmas.gbp differ diff --git a/Palette/Extra/Coldfire.gbp b/Palette/Extra/Coldfire.gbp new file mode 100644 index 0000000..eea6108 Binary files /dev/null and b/Palette/Extra/Coldfire.gbp differ diff --git a/Palette/Extra/Darkboy4.gbp b/Palette/Extra/Darkboy4.gbp new file mode 100644 index 0000000..e404e17 Binary files /dev/null and b/Palette/Extra/Darkboy4.gbp differ diff --git a/Palette/Extra/Do the Dew.gbp b/Palette/Extra/Do the Dew.gbp new file mode 100644 index 0000000..f38baf6 Binary files /dev/null and b/Palette/Extra/Do the Dew.gbp differ diff --git a/Palette/Extra/Earth.gbp b/Palette/Extra/Earth.gbp new file mode 100644 index 0000000..60cc97c Binary files /dev/null and b/Palette/Extra/Earth.gbp differ diff --git a/Palette/Extra/Easy Greens.gbp b/Palette/Extra/Easy Greens.gbp new file mode 100644 index 0000000..0fdba44 Binary files /dev/null and b/Palette/Extra/Easy Greens.gbp differ diff --git a/Palette/Extra/Gruel.gbp b/Palette/Extra/Gruel.gbp new file mode 100644 index 0000000..cd81b5c Binary files /dev/null and b/Palette/Extra/Gruel.gbp differ diff --git a/Palette/Extra/Hisato no Iro.gbp b/Palette/Extra/Hisato no Iro.gbp new file mode 100644 index 0000000..56cd31c Binary files /dev/null and b/Palette/Extra/Hisato no Iro.gbp differ diff --git a/Palette/Extra/Ice Cream.gbp b/Palette/Extra/Ice Cream.gbp new file mode 100644 index 0000000..01ec22f Binary files /dev/null and b/Palette/Extra/Ice Cream.gbp differ diff --git a/Palette/Extra/Kiosk.gbp b/Palette/Extra/Kiosk.gbp new file mode 100644 index 0000000..ac7c492 Binary files /dev/null and b/Palette/Extra/Kiosk.gbp differ diff --git a/Palette/Extra/Kirokaze.gbp b/Palette/Extra/Kirokaze.gbp new file mode 100644 index 0000000..8561f8b Binary files /dev/null and b/Palette/Extra/Kirokaze.gbp differ diff --git a/Palette/Extra/Muddysand.gbp b/Palette/Extra/Muddysand.gbp new file mode 100644 index 0000000..ffd3155 Binary files /dev/null and b/Palette/Extra/Muddysand.gbp differ diff --git a/Palette/Extra/NASCAR.gbp b/Palette/Extra/NASCAR.gbp new file mode 100644 index 0000000..f0541a5 Binary files /dev/null and b/Palette/Extra/NASCAR.gbp differ diff --git a/Palette/Extra/Nostalgia.gbp b/Palette/Extra/Nostalgia.gbp new file mode 100644 index 0000000..abf2c69 Binary files /dev/null and b/Palette/Extra/Nostalgia.gbp differ diff --git a/Palette/Extra/Novocaine.gbp b/Palette/Extra/Novocaine.gbp new file mode 100644 index 0000000..eabe6a4 Binary files /dev/null and b/Palette/Extra/Novocaine.gbp differ diff --git a/Palette/Extra/Nymph.gbp b/Palette/Extra/Nymph.gbp new file mode 100644 index 0000000..4aac089 Binary files /dev/null and b/Palette/Extra/Nymph.gbp differ diff --git a/Palette/Extra/Penny.gbp b/Palette/Extra/Penny.gbp new file mode 100644 index 0000000..ac2abb6 Binary files /dev/null and b/Palette/Extra/Penny.gbp differ diff --git a/Palette/Extra/Platinum.gbp b/Palette/Extra/Platinum.gbp new file mode 100644 index 0000000..64cd6e0 Binary files /dev/null and b/Palette/Extra/Platinum.gbp differ diff --git a/Palette/Extra/Purpledawn.gbp b/Palette/Extra/Purpledawn.gbp new file mode 100644 index 0000000..49ae671 Binary files /dev/null and b/Palette/Extra/Purpledawn.gbp differ diff --git a/Palette/Extra/Retro Bogeda.gbp b/Palette/Extra/Retro Bogeda.gbp new file mode 100644 index 0000000..ce53e9c Binary files /dev/null and b/Palette/Extra/Retro Bogeda.gbp differ diff --git a/Palette/Extra/Rustic.gbp b/Palette/Extra/Rustic.gbp new file mode 100644 index 0000000..ec5daa2 Binary files /dev/null and b/Palette/Extra/Rustic.gbp differ diff --git a/Palette/Extra/Scooby-Doo Mystery.gbp b/Palette/Extra/Scooby-Doo Mystery.gbp new file mode 100644 index 0000000..7d662ec Binary files /dev/null and b/Palette/Extra/Scooby-Doo Mystery.gbp differ diff --git a/Palette/Extra/Spacehaze.gbp b/Palette/Extra/Spacehaze.gbp new file mode 100644 index 0000000..37f97ea Binary files /dev/null and b/Palette/Extra/Spacehaze.gbp differ diff --git a/Palette/Extra/Wish.gbp b/Palette/Extra/Wish.gbp new file mode 100644 index 0000000..aabadb9 Binary files /dev/null and b/Palette/Extra/Wish.gbp differ diff --git a/Palette/Extra/Workbench.gbp b/Palette/Extra/Workbench.gbp new file mode 100644 index 0000000..b831d33 Binary files /dev/null and b/Palette/Extra/Workbench.gbp differ diff --git a/Palette/Extra/bgb Emulator green.gbp b/Palette/Extra/bgb Emulator green.gbp new file mode 100644 index 0000000..fbd4cc5 Binary files /dev/null and b/Palette/Extra/bgb Emulator green.gbp differ diff --git a/Palette/Extra/blue.gbp b/Palette/Extra/blue.gbp new file mode 100644 index 0000000..bb5eabb Binary files /dev/null and b/Palette/Extra/blue.gbp differ diff --git a/Palette/SGB/1-A.gbp b/Palette/SGB/1-A.gbp new file mode 100644 index 0000000..eb886b5 Binary files /dev/null and b/Palette/SGB/1-A.gbp differ diff --git a/Palette/SGB/1-B.gbp b/Palette/SGB/1-B.gbp new file mode 100644 index 0000000..40035dc Binary files /dev/null and b/Palette/SGB/1-B.gbp differ diff --git a/Palette/SGB/1-C.gbp b/Palette/SGB/1-C.gbp new file mode 100644 index 0000000..de41831 Binary files /dev/null and b/Palette/SGB/1-C.gbp differ diff --git a/Palette/SGB/1-D.gbp b/Palette/SGB/1-D.gbp new file mode 100644 index 0000000..7f31d3f Binary files /dev/null and b/Palette/SGB/1-D.gbp differ diff --git a/Palette/SGB/1-E.gbp b/Palette/SGB/1-E.gbp new file mode 100644 index 0000000..bf7d7ba Binary files /dev/null and b/Palette/SGB/1-E.gbp differ diff --git a/Palette/SGB/1-F.gbp b/Palette/SGB/1-F.gbp new file mode 100644 index 0000000..4c406f6 Binary files /dev/null and b/Palette/SGB/1-F.gbp differ diff --git a/Palette/SGB/1-G.gbp b/Palette/SGB/1-G.gbp new file mode 100644 index 0000000..71b105b Binary files /dev/null and b/Palette/SGB/1-G.gbp differ diff --git a/Palette/SGB/1-H.gbp b/Palette/SGB/1-H.gbp new file mode 100644 index 0000000..221f7e4 Binary files /dev/null and b/Palette/SGB/1-H.gbp differ diff --git a/Palette/SGB/2-A.gbp b/Palette/SGB/2-A.gbp new file mode 100644 index 0000000..b94a8fd Binary files /dev/null and b/Palette/SGB/2-A.gbp differ diff --git a/Palette/SGB/2-B.gbp b/Palette/SGB/2-B.gbp new file mode 100644 index 0000000..961ca22 Binary files /dev/null and b/Palette/SGB/2-B.gbp differ diff --git a/Palette/SGB/2-C.gbp b/Palette/SGB/2-C.gbp new file mode 100644 index 0000000..b3c43e6 Binary files /dev/null and b/Palette/SGB/2-C.gbp differ diff --git a/Palette/SGB/2-D.gbp b/Palette/SGB/2-D.gbp new file mode 100644 index 0000000..0148122 Binary files /dev/null and b/Palette/SGB/2-D.gbp differ diff --git a/Palette/SGB/2-E.gbp b/Palette/SGB/2-E.gbp new file mode 100644 index 0000000..b85f58c Binary files /dev/null and b/Palette/SGB/2-E.gbp differ diff --git a/Palette/SGB/2-F.gbp b/Palette/SGB/2-F.gbp new file mode 100644 index 0000000..c6c683a Binary files /dev/null and b/Palette/SGB/2-F.gbp differ diff --git a/Palette/SGB/2-G.gbp b/Palette/SGB/2-G.gbp new file mode 100644 index 0000000..5344b38 Binary files /dev/null and b/Palette/SGB/2-G.gbp differ diff --git a/Palette/SGB/2-H.gbp b/Palette/SGB/2-H.gbp new file mode 100644 index 0000000..8de50c6 Binary files /dev/null and b/Palette/SGB/2-H.gbp differ diff --git a/Palette/SGB/3-A.gbp b/Palette/SGB/3-A.gbp new file mode 100644 index 0000000..867ae15 Binary files /dev/null and b/Palette/SGB/3-A.gbp differ diff --git a/Palette/SGB/3-B.gbp b/Palette/SGB/3-B.gbp new file mode 100644 index 0000000..76279a7 Binary files /dev/null and b/Palette/SGB/3-B.gbp differ diff --git a/Palette/SGB/3-C.gbp b/Palette/SGB/3-C.gbp new file mode 100644 index 0000000..fbc33b7 Binary files /dev/null and b/Palette/SGB/3-C.gbp differ diff --git a/Palette/SGB/3-D.gbp b/Palette/SGB/3-D.gbp new file mode 100644 index 0000000..4dab433 Binary files /dev/null and b/Palette/SGB/3-D.gbp differ diff --git a/Palette/SGB/3-E.gbp b/Palette/SGB/3-E.gbp new file mode 100644 index 0000000..502f25c Binary files /dev/null and b/Palette/SGB/3-E.gbp differ diff --git a/Palette/SGB/3-F.gbp b/Palette/SGB/3-F.gbp new file mode 100644 index 0000000..bf69ee1 Binary files /dev/null and b/Palette/SGB/3-F.gbp differ diff --git a/Palette/SGB/3-G.gbp b/Palette/SGB/3-G.gbp new file mode 100644 index 0000000..47b010c Binary files /dev/null and b/Palette/SGB/3-G.gbp differ diff --git a/Palette/SGB/3-H.gbp b/Palette/SGB/3-H.gbp new file mode 100644 index 0000000..7c965f4 Binary files /dev/null and b/Palette/SGB/3-H.gbp differ diff --git a/Palette/SGB/4-A.gbp b/Palette/SGB/4-A.gbp new file mode 100644 index 0000000..89566f8 Binary files /dev/null and b/Palette/SGB/4-A.gbp differ diff --git a/Palette/SGB/4-B.gbp b/Palette/SGB/4-B.gbp new file mode 100644 index 0000000..7cab882 Binary files /dev/null and b/Palette/SGB/4-B.gbp differ diff --git a/Palette/SGB/4-C.gbp b/Palette/SGB/4-C.gbp new file mode 100644 index 0000000..adb72c6 Binary files /dev/null and b/Palette/SGB/4-C.gbp differ diff --git a/Palette/SGB/4-D.gbp b/Palette/SGB/4-D.gbp new file mode 100644 index 0000000..1cd2ba5 Binary files /dev/null and b/Palette/SGB/4-D.gbp differ diff --git a/Palette/SGB/4-E.gbp b/Palette/SGB/4-E.gbp new file mode 100644 index 0000000..cdd6383 Binary files /dev/null and b/Palette/SGB/4-E.gbp differ diff --git a/Palette/SGB/4-F.gbp b/Palette/SGB/4-F.gbp new file mode 100644 index 0000000..3813309 Binary files /dev/null and b/Palette/SGB/4-F.gbp differ diff --git a/Palette/SGB/4-G.gbp b/Palette/SGB/4-G.gbp new file mode 100644 index 0000000..fe977b0 Binary files /dev/null and b/Palette/SGB/4-G.gbp differ diff --git a/Palette/SGB/4-H.gbp b/Palette/SGB/4-H.gbp new file mode 100644 index 0000000..3d8071a Binary files /dev/null and b/Palette/SGB/4-H.gbp differ diff --git a/Palette/gbpalette.c b/Palette/gbpalette.c new file mode 100644 index 0000000..d8004c9 --- /dev/null +++ b/Palette/gbpalette.c @@ -0,0 +1,61 @@ +#include +#include +#include +#include + +// GBP file format is simple. There are 4 palette colors using 8 bit +// rgb, starting from lightest ending in darkest for a total of 12 bytes. +// The last several bytes are 0, reserved for future use. + + +void gbp_get_color(uint8_t *palette, uint32_t index) +{ + char buffer[100]; + + printf ("Red (0-255): "); + fgets(buffer, sizeof(buffer), stdin); + palette[index] = (uint8_t) strtol(buffer, NULL, 10); + + printf ("Green (0-255): "); + fgets(buffer, sizeof(buffer), stdin); + palette[index + 1] = (uint8_t) strtol(buffer, NULL, 10); + + printf ("Blue (0-255): "); + fgets(buffer, sizeof(buffer), stdin); + palette[index + 2] = (uint8_t) strtol(buffer, NULL, 10); +} + +int main (int argc, char **argv) +{ + uint8_t palette[16]; + memset(palette, 0, sizeof(palette)); + + if (argc < 2) { + printf("Usage: %s \n", argv[0]); + return 1; + } + + FILE *f = fopen(argv[1], "w"); + if (!f) { + printf("Unable to open %s for writing.\n", argv[1]); + return 1; + } + + printf("Color 1:\n"); + gbp_get_color(palette, 0); + + printf("Color 2:\n"); + gbp_get_color(palette, 3); + + printf("Color 3:\n"); + gbp_get_color(palette, 6); + + printf("Color 4:\n"); + gbp_get_color(palette, 9); + + fwrite(palette, 1, 16, f); + + fclose(f); + + return 0; +} \ No newline at end of file