llvm-mos-sdk
Macros | Enumerations
mega65.h File Reference
#include <stdint.h>
#include <_45E100.h>
#include <_6526.h>
#include <_sid.h>
#include <_vic2.h>
#include <_vic3.h>
#include <_vic4.h>
Include dependency graph for mega65.h:

Go to the source code of this file.

Macros

#define CPU_PORTDDR   (*(volatile uint8_t *)0x0000)
 6510/45GS10 CPU port DDR More...
 
#define CPU_PORT   (*(volatile uint8_t *)0x0001)
 6510/45GS10 CPU port data More...
 
#define DEFAULT_SCREEN   (*(volatile uint8_t *)0x0800)
 Default address of screen character matrix. More...
 
#define VICII   (*(volatile struct __vic2 *)0xd000)
 The VIC-II. More...
 
#define VICIV   (*(volatile struct __vic4 *)0xd000)
 The VIC IV. More...
 
#define PALETTE   (*(volatile struct __color_palette *)0xd100)
 Color palette. More...
 
#define SID1   (*(volatile struct __sid *)0xd400)
 SID MOS 6581/8580. More...
 
#define SID2   (*(volatile struct __sid *)0xd420)
 SID MOS 6581/8580. More...
 
#define SID3   (*(volatile struct __sid *)0xd440)
 SID MOS 6581/8580. More...
 
#define SID4   (*(volatile struct __sid *)0xd460)
 SID MOS 6581/8580. More...
 
#define SIDMODE   (*(volatile uint8_t *)0xd63c)
 SID select mode (0=6581, 1=8580) More...
 
#define HYPERVISOR   (*(volatile struct __hypervisor *)0xd640)
 Hypervisor traps. More...
 
#define ETHERNET   (*(volatile struct __45E100 *)0xd6e0)
 Ethernet controller. More...
 
#define MATHBUSY   (*(volatile uint8_t *)0xd70f)
 Math busy flag. More...
 
#define MATH   (*(volatile struct __cpu_math *)0xd768)
 Math accelerator. More...
 
#define CIA1   (*(volatile struct __6526 *)0xdc00)
 The CIA 1. More...
 
#define CIA2   (*(volatile struct __6526 *)0xdd00)
 The CIA 2. More...
 

Enumerations

enum  {
  COLOR_BLACK = 0x00, COLOR_WHITE = 0x01, COLOR_RED = 0x02, COLOR_CYAN = 0x03,
  COLOR_PURPLE = 0x04, COLOR_GREEN = 0x05, COLOR_BLUE = 0x06, COLOR_YELLOW = 0x07,
  COLOR_ORANGE = 0x08, COLOR_BROWN = 0x09, COLOR_LIGHTRED = 0x0A, COLOR_DARKGREY = 0x0B,
  COLOR_MIDGREY = 0x0C, COLOR_LIGHTGREEN = 0x0D, COLOR_LIGHTBLUE = 0x0E, COLOR_LIGHTGREY = 0x0F,
  COLOR_GURUMEDITATION = 0x10, COLOR_RAMBUTAN = 0x11, COLOR_CARROT = 0x12, COLOR_LEMONTART = 0x13,
  COLOR_PANDAN = 0x14, COLOR_SEASICKGREEN = 0x15, COLOR_SOYLENTGREEN = 0x16, COLOR_SLIMERGREEN = 0x17,
  COLOR_THEOTHERCYAN = 0x18, COLOR_SEASKY = 0x19, COLOR_SMURFBLUE = 0x1A, COLOR_SCREENOFDEATH = 0x1B,
  COLOR_PLUMSAUCE = 0x1C, COLOR_SOURGRAPE = 0x1D, COLOR_BUBBLEGUM = 0x1E, COLOR_HOTTAMALES = 0x1F
}
 Default color palette. More...
 

Macro Definition Documentation

◆ CIA1

#define CIA1   (*(volatile struct __6526 *)0xdc00)

The CIA 1.

◆ CIA2

#define CIA2   (*(volatile struct __6526 *)0xdd00)

The CIA 2.

◆ CPU_PORT

#define CPU_PORT   (*(volatile uint8_t *)0x0001)

6510/45GS10 CPU port data

◆ CPU_PORTDDR

#define CPU_PORTDDR   (*(volatile uint8_t *)0x0000)

6510/45GS10 CPU port DDR

◆ DEFAULT_SCREEN

#define DEFAULT_SCREEN   (*(volatile uint8_t *)0x0800)

Default address of screen character matrix.

◆ ETHERNET

#define ETHERNET   (*(volatile struct __45E100 *)0xd6e0)

Ethernet controller.

◆ HYPERVISOR

#define HYPERVISOR   (*(volatile struct __hypervisor *)0xd640)

Hypervisor traps.

◆ MATH

#define MATH   (*(volatile struct __cpu_math *)0xd768)

Math accelerator.

◆ MATHBUSY

#define MATHBUSY   (*(volatile uint8_t *)0xd70f)

Math busy flag.

◆ PALETTE

#define PALETTE   (*(volatile struct __color_palette *)0xd100)

Color palette.

◆ SID1

#define SID1   (*(volatile struct __sid *)0xd400)

SID MOS 6581/8580.

◆ SID2

#define SID2   (*(volatile struct __sid *)0xd420)

SID MOS 6581/8580.

◆ SID3

#define SID3   (*(volatile struct __sid *)0xd440)

SID MOS 6581/8580.

◆ SID4

#define SID4   (*(volatile struct __sid *)0xd460)

SID MOS 6581/8580.

◆ SIDMODE

#define SIDMODE   (*(volatile uint8_t *)0xd63c)

SID select mode (0=6581, 1=8580)

◆ VICII

#define VICII   (*(volatile struct __vic2 *)0xd000)

The VIC-II.

◆ VICIV

#define VICIV   (*(volatile struct __vic4 *)0xd000)

The VIC IV.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Default color palette.

Enumerator
COLOR_BLACK 
COLOR_WHITE 
COLOR_RED 
COLOR_CYAN 
COLOR_PURPLE 
COLOR_GREEN 
COLOR_BLUE 
COLOR_YELLOW 
COLOR_ORANGE 
COLOR_BROWN 
COLOR_LIGHTRED 
COLOR_DARKGREY 
COLOR_MIDGREY 
COLOR_LIGHTGREEN 
COLOR_LIGHTBLUE 
COLOR_LIGHTGREY 
COLOR_GURUMEDITATION 
COLOR_RAMBUTAN 
COLOR_CARROT 
COLOR_LEMONTART 
COLOR_PANDAN 
COLOR_SEASICKGREEN 
COLOR_SOYLENTGREEN 
COLOR_SLIMERGREEN 
COLOR_THEOTHERCYAN 
COLOR_SEASKY 
COLOR_SMURFBLUE 
COLOR_SCREENOFDEATH 
COLOR_PLUMSAUCE 
COLOR_SOURGRAPE 
COLOR_BUBBLEGUM 
COLOR_HOTTAMALES