mirror of
https://github.com/gbdk-2020/gbdk-2020.git
synced 2026-03-12 10:18:28 +01:00
* Copy gbdk-lib/include/gb/bcd.h to gbdk-lib/include/nes/bcd.h * Add bcd asm implementation in libc/asm/mos6502/bcd.s * Update bcd.h to accept NES target * Update examples/cross-platform/bcd to build for nes
14 lines
357 B
C
14 lines
357 B
C
#ifndef __GBDK_BCD_H_INCLUDE
|
|
#define __GBDK_BCD_H_INCLUDE
|
|
|
|
#if defined(__TARGET_gb) || defined(__TARGET_ap) || defined(__TARGET_duck)
|
|
#include <gb/bcd.h>
|
|
#elif defined(__TARGET_sms) || defined(__TARGET_gg) || defined(__TARGET_msxdos)
|
|
#include <sms/bcd.h>
|
|
#elif defined(__TARGET_nes)
|
|
#include <nes/bcd.h>
|
|
#else
|
|
#error Unrecognized port
|
|
#endif
|
|
|
|
#endif |