// Uncomment to use production headers //#define PRODUCTION #ifndef PRODUCTION // Include all tonc functions, better to only include files you're using #include #else // Trim these down to only what you're using. If you use all of these, // just use tonc.h #include // Define useful data types and macros (almost required) #include // Register/memory locations & register macros #include // BIOS control flags & registers (includes compression) #include // Many useful functions #include // Key checking and polling functions #include // Used for managing interrupts #include // Math macros and LUTs #include // Manage OAM attributes (including affines) #include // Tonc Text Engine #include // Macros, functions, & defines for various video modes #include // Create and manage surfaces #include // NoCash Debugging functions #endif // PRODUCTION int main(void) { // Wait for vsync (necessary for this? probably not, but good practice) vid_vsync(); // Bitmap mode 3, enable BG2 (bitmap layer) REG_DISPCNT = DCNT_MODE3 | DCNT_BG2; // Plot RGB points m3_plot(119, 80, RGB15(31, 0, 0)); // Red m3_plot(120, 80, RGB15(0, 31, 0)); // Green m3_plot(121, 80, RGB15(0, 0, 31)); // Blue while (1); // Loop so you don't get nasal demons return 0; }