gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/makecom/common.h
1 #ifndef _COMMON_H
2 #define _COMMON_H
3
4 #include <stdint.h>
5
6 #define ARRAY_LEN(A) (sizeof(A) / sizeof(A[0]))
7
8 #define MAX_STR_LEN 4096
9 #define MAX_FILE_STR (MAX_STR_LEN)
10 #define SYM_MAX_STR_LEN 1024
11
12 #define BANK_FNAME_LEN (8+1+3 +1) // 8.3 filename style + terminator, ex: MYCOMFIL.001 (from "mycomfile.com")
13 #define COM_OVERLAY_NAME_LEN (8 + 1) // 8 chars for overlay string + terminator "MYCOMFIL"
14
15
16 extern char filename_in_bin[];
17 extern char filename_in_noi[];
18 extern char filename_out_com[];
19 extern char filename_banks_base[];
20 extern char filename_overlay[];
21
22 extern uint8_t * p_rom_buf_in;
23 extern size_t rom_buf_in_len;
24
25 #endif // _COMMON_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.