rickjr/src/mapper.h

25 lines
568 B
C

/*
Special mapper macros for the F256 + mos-llvm, so we can put code
anywhere in physical ram
Currently only blocks 8-23 are defined in the linker file
If you need to go beyond the 128k of extra code, just add more definitions
into rickjr.ld
*/
#if defined(F256) && F256
/*
$$JGA TODO, sort out how to mark an entire file
*/
#define RAM_BLOCK(index) __attribute__((noinline, section(".block"#index)))
#define RO_BLOCK(index) __attribute__((section(".block"#index)))
#else
#define RAM_BLOCK(index)
#define RO_BLOCK(index)
#endif