X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmemory.h;h=afca082690d1d1fd371bf339bb42b28d4ea1e8c1;hb=add51c49ecdda53f59bd4c01d4b2e03817002a71;hp=44213714e53c008c29c1bbb3a9eeff06673ff785;hpb=95049eea1c93ae4ed044c0cbb51b3c19442e0e2b;p=picodrive.git diff --git a/pico/memory.h b/pico/memory.h index 4421371..afca082 100644 --- a/pico/memory.h +++ b/pico/memory.h @@ -45,7 +45,8 @@ void cpu68k_map_set(uptr *map, int start_addr, int end_addr, void cpu68k_map_all_ram(int start_addr, int end_addr, void *ptr, int is_sub); void m68k_map_unmap(int start_addr, int end_addr); -#define map_flag_set(x) ((x) & ((uptr)1 << (sizeof(uptr) * 8 - 1))) +#define MAP_FLAG ((uptr)1 << (sizeof(uptr) * 8 - 1)) +#define map_flag_set(x) ((x) & MAP_FLAG) #define MAKE_68K_READ8(name, map) \ u32 name(u32 a) \