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

  1. #ifndef GBSDK_OAM_H
  2. #define GBSDK_OAM_H
  3. #include <stdint.h>
  4. #include <sdk/hardware.h>
  5. struct oam_entry {
  6. uint8_t y;
  7. uint8_t x;
  8. uint8_t tile;
  9. uint8_t attr;
  10. };
  11. extern struct oam_entry shadow_oam[40];
  12. void oam_init(void) __preserves_regs(b);
  13. void oam_dma_copy(void) __preserves_regs(b, c, d, e, h, l);
  14. #endif//GBSDK_OAM_H