2021-07-27 11:19:39 +02:00
|
|
|
/* <platform.h> file for CASIO Graph 90+E / fx-CG 50 hardware */
|
2021-07-17 10:40:12 +02:00
|
|
|
#ifndef PLATFORM_H
|
|
|
|
#define PLATFORM_H
|
|
|
|
|
2021-07-27 11:12:31 +02:00
|
|
|
//---
|
|
|
|
// WAD file access method (enable exactly one)
|
|
|
|
//---
|
|
|
|
|
2021-07-27 14:18:06 +02:00
|
|
|
/* Use BFile (100% accurate but slows down the game quite a bit because of
|
|
|
|
reads happening all the time; mostly a good reference for testing) */
|
2021-07-27 11:12:31 +02:00
|
|
|
// #define CGDOOM_WAD_BFILE
|
2021-07-27 14:18:06 +02:00
|
|
|
/* Search fragments in physical ROM when loading the game, and copy by hand
|
|
|
|
from ROM to RAM during accesses (much faster) */
|
2021-07-27 11:12:31 +02:00
|
|
|
#define CGDOOM_WAD_MAPPING
|
2021-07-27 14:18:06 +02:00
|
|
|
/* Idem, but copy copy with DMA (even faster) */
|
2021-07-27 11:12:31 +02:00
|
|
|
// #define CGDOOM_WAD_MAPPING_DMA
|
|
|
|
|
|
|
|
/* Settings for file mappings: traverse the whole 32-MiB Flash */
|
|
|
|
#define FLASH_START (0xA0000000)
|
|
|
|
#define FLASH_END (0xA2000000)
|
|
|
|
/* Storage unit is a cluster of 512 bytes */
|
|
|
|
#define FLASH_PAGE_SIZE 512
|
|
|
|
#define FLASH_PAGE_SIZE_LOG2 9
|
|
|
|
#define FLASH_PAGE_COUNT ((FLASH_END-FLASH_START) / FLASH_PAGE_SIZE)
|
|
|
|
|
|
|
|
//---
|
|
|
|
|
2021-07-17 10:40:12 +02:00
|
|
|
#include "keyboard.hpp"
|
|
|
|
#include "keyboard_syscalls.h"
|
|
|
|
#include "APP_syscalls.h"
|
|
|
|
#include "CONVERT_syscalls.h"
|
|
|
|
#include "SYSTEM_syscalls.h"
|
|
|
|
#include "RTC_syscalls.h"
|
|
|
|
#include "MCS_syscalls.h"
|
|
|
|
#include "fxcg/display.h"
|
|
|
|
#include "fxcg/misc.h"
|
|
|
|
#include "fxcg/file.h"
|
|
|
|
#include "fxcg/serial.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2021-07-27 11:12:31 +02:00
|
|
|
#include <stdint.h>
|
2021-07-17 10:40:12 +02:00
|
|
|
|
|
|
|
#define WIDTH 384
|
|
|
|
#define HEIGHT 216
|
|
|
|
|
|
|
|
#define KEY_PRGM_OPTN 68
|
|
|
|
#define KEY_PRGM_MENU 48
|
|
|
|
#define KEY_PRGM_POWER 57
|
|
|
|
#define KEY_PRGM_EXE 31
|
|
|
|
|
|
|
|
#define EmulHack_Sleep(x)
|
|
|
|
#define ASSERT(x)
|
|
|
|
#define InitFlashSimu(filename)
|
|
|
|
|
|
|
|
#endif //#ifndef PLATFORM_H
|