Files
gbdk-2020/gbdk-lib/include/gbdk/bcd.h
Michel Iwaniec 54dbf0722e NES: Add BCD support
* 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
2024-05-18 02:09:44 +01:00

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