Skip to content

Commit

Permalink
win32 HMA/XMS/EMS build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xrip committed Dec 27, 2023
1 parent 91d37ff commit df8a44c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ SDL_Window* window;

SDL_Surface* screen;
volatile uint16_t true_covox = 0;
bool PSRAM_AVAILABLE = true;
#endif

bool PSRAM_AVAILABLE = false;

bool SD_CARD_AVAILABLE = false;
uint32_t DIRECT_RAM_BORDER = PSRAM_AVAILABLE ? RAM_SIZE : (SD_CARD_AVAILABLE ? RAM_PAGE_SIZE : RAM_SIZE);
bool runing = true;
static int16_t last_dss_sample = 0;
#if PICO_ON_DEVICE
bool PSRAM_AVAILABLE = false;
pwm_config config = pwm_get_default_config();
#define PWM_PIN0 (26)
#define PWM_PIN1 (27)
Expand Down
6 changes: 0 additions & 6 deletions src/ram_page.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@

#define RAM_PAGE_SIZE (RAM_PAGE_SIZE_KB * 1024)

#if PICO_ON_DEVICE
// CGA
#define RAM_SIZE (2 * 74ul << 10) // 75 pages (2Kb) = 150KB real pico RAM
//#define RAM_SIZE (2 * 44ul << 10) // 44 pages (2Kb) = 88KB real pico RAM
#else
#define RAM_SIZE (640ul << 10)
#endif

extern uint8_t RAM[RAM_SIZE];

Expand Down

0 comments on commit df8a44c

Please sign in to comment.