2020-02-02 18:17:31 +00:00
|
|
|
#ifndef _COMMON_H
|
|
|
|
#define _COMMON_H
|
|
|
|
|
2022-08-09 19:39:27 +00:00
|
|
|
#include <conio.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2020-02-02 18:17:31 +00:00
|
|
|
#include <stdint.h>
|
2022-08-09 19:39:27 +00:00
|
|
|
#include <peekpoke.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <c64.h>
|
|
|
|
#include <joystick.h>
|
2020-02-02 18:17:31 +00:00
|
|
|
|
|
|
|
typedef uint8_t byte;
|
|
|
|
typedef uint16_t word;
|
|
|
|
typedef int8_t sbyte;
|
|
|
|
typedef enum { false, true } bool;
|
|
|
|
|
|
|
|
#define COLS 40
|
|
|
|
#define ROWS 25
|
|
|
|
|
2022-08-09 14:47:55 +00:00
|
|
|
#define DEFAULT_SCREEN ((void*)0x400)
|
|
|
|
|
2022-08-09 19:39:27 +00:00
|
|
|
#define wait_vblank waitvsync
|
|
|
|
|
2022-08-09 14:47:55 +00:00
|
|
|
void raster_wait(byte line);
|
2020-02-02 18:17:31 +00:00
|
|
|
|
2022-08-09 14:47:55 +00:00
|
|
|
char* get_vic_bank_start(void);
|
|
|
|
|
2020-02-02 18:17:31 +00:00
|
|
|
#endif
|