gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/ihxcheck/areas.h
1 // This is free and unencumbered software released into the public domain.
2 // For more information, please refer to <https://unlicense.org>
3 // bbbbbr 2020
4
5 #ifndef _AREAS_H
6 #define _AREAS_H
7
8 typedef struct area_item {
9 uint32_t start;
10 uint32_t end;
11 uint32_t length;
12 } area_item;
13
14 typedef struct bank_info {
15 bool overflowed_into;
16 uint16_t overflow_from;
17 bool had_multiple_write_warning;
18 } bank_info;
19
20 #define BANKS_MAX_COUNT 512
21 #define BANK_NUM(addr) ((addr & 0xFFFFC000U) >> 14)
22
23 void areas_init(void);
24 void areas_cleanup(void);
25 int areas_add(area_item * p_area);
26
27 #endif // _AREAS_H
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.