cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

common.h (655B)


      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
     16extern char filename_in_bin[];
     17extern char filename_in_noi[];
     18extern char filename_out_com[];
     19extern char filename_banks_base[];
     20extern char filename_overlay[];
     21
     22extern uint8_t * p_rom_buf_in;
     23extern size_t    rom_buf_in_len;
     24
     25#endif // _COMMON_H