llvm-mos-sdk
Macros | Typedefs | Functions | Variables
mapper_xram_single.h File Reference
#include <mapper.h>
Include dependency graph for mapper_xram_single.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _DECLARE_XRAM_VARIABLE(index, declaration)
 
#define DECLARE_XRAM_VARIABLE(index, declaration)   _DECLARE_XRAM_VARIABLE(index, declaration)
 

Typedefs

typedef unsigned char ram_bank_t
 

Functions

void ram_select (ram_bank_t bank_id)
 
void xram_write (int offset, unsigned char value)
 
unsigned char xram_read (int offset)
 

Variables

void(* method )(void))
 

Macro Definition Documentation

◆ _DECLARE_XRAM_VARIABLE

#define _DECLARE_XRAM_VARIABLE (   index,
  declaration 
)
Value:
__attribute__((section(".xram" #index "_read"))) volatile const declaration##_read; \
__attribute__((section(".xram" #index "_write"))) volatile declaration##_write;

◆ DECLARE_XRAM_VARIABLE

#define DECLARE_XRAM_VARIABLE (   index,
  declaration 
)    _DECLARE_XRAM_VARIABLE(index, declaration)

Typedef Documentation

◆ ram_bank_t

typedef unsigned char ram_bank_t

Function Documentation

◆ ram_select()

void ram_select ( ram_bank_t  bank_id)

◆ xram_read()

unsigned char xram_read ( int  offset)

◆ xram_write()

void xram_write ( int  offset,
unsigned char  value 
)

Variable Documentation

◆ method

void(* method) (void))
index
char index
Definition: nesdoug.h:113