lol its in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
340 B

#ifndef GBSDK_OAM_H
#define GBSDK_OAM_H
#include <stdint.h>
#include <sdk/hardware.h>
struct oam_entry {
uint8_t y;
uint8_t x;
uint8_t tile;
uint8_t attr;
};
extern struct oam_entry shadow_oam[40];
void oam_init(void) __preserves_regs(b);
void oam_dma_copy(void) __preserves_regs(b, c, d, e, h, l);
#endif//GBSDK_OAM_H