Implement nost-pack tool

This commit is contained in:
2017-04-13 04:38:59 -05:00
parent c5712f26e2
commit ab2e6e5ea2
12 changed files with 165 additions and 30 deletions
+2 -10
View File
@@ -10,26 +10,18 @@
#include <ox/std/std.hpp>
#include "addresses.hpp"
#include "media.hpp"
#include "gba.hpp"
#include "dirt.h"
namespace nostalgia {
namespace core {
using namespace ox::fs;
using namespace ox::std;
typedef struct { uint32_t data[8]; } Tile, Tile4;
// d-tile: double-sized tile (8bpp)
typedef struct { uint32_t data[16]; } Tile8;
// tile block: 32x16 tiles, 16x16 d-tiles
typedef struct { unsigned short data[256]; } Pallete;
typedef Tile CharBlock[512];
typedef Tile8 CharBlock8[256];
#define TILE_ADDR ((CharBlock*) 0x06000000)
#define TILE8_ADDR ((CharBlock8*) 0x06000000)
ox::std::Error initGfx() {
ox::Error initGfx() {
/* Sprite Mode ----\ */
/* ---\| */
/* Background 0 -\|| */