diff options
author | Made-s <made111@gmx.de> | 2020-05-04 17:15:10 +0200 |
---|---|---|
committer | Made-s <made111@gmx.de> | 2020-05-04 17:15:10 +0200 |
commit | 88d142a33b9973f35c913b3fdad7f6a4394a05cd (patch) | |
tree | c6ad861213ccebb62919e27f6d7f3f1080e1ee76 /include/nitro/consts.h | |
parent | ab28b0b37f2fd9fba6010e48e15bd31170d678d7 (diff) | |
parent | c82690dca094b624944b155e5119631c185bca5c (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond
Diffstat (limited to 'include/nitro/consts.h')
-rw-r--r-- | include/nitro/consts.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/include/nitro/consts.h b/include/nitro/consts.h deleted file mode 100644 index 6fc71be2..00000000 --- a/include/nitro/consts.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// Created by mart on 4/15/20. -// - -#ifndef POKEDIAMOND_CONSTS_H -#define POKEDIAMOND_CONSTS_H - -#include "mmap.h" - -#define HW_PSR_CPU_MODE_MASK 0x1f // CPU mode - -#define HW_PSR_FIQ_DISABLE 0x40 // Disable FIQ -#define HW_PSR_IRQ_DISABLE 0x80 // Disable IRQ -#define HW_PSR_IRQ_FIQ_DISABLE 0xc0 // Disable FIQ and IRQ - -#define HW_C6_PR_4KB 0x16 -#define HW_C6_PR_8KB 0x18 -#define HW_C6_PR_16KB 0x1a -#define HW_C6_PR_32KB 0x1c -#define HW_C6_PR_64KB 0x1e -#define HW_C6_PR_128KB 0x20 -#define HW_C6_PR_256KB 0x22 -#define HW_C6_PR_512KB 0x24 -#define HW_C6_PR_1MB 0x26 -#define HW_C6_PR_2MB 0x28 -#define HW_C6_PR_4MB 0x2a -#define HW_C6_PR_8MB 0x2c -#define HW_C6_PR_16MB 0x2e -#define HW_C6_PR_32MB 0x30 -#define HW_C6_PR_64MB 0x32 -#define HW_C6_PR_128MB 0x34 -#define HW_C6_PR_256MB 0x36 -#define HW_C6_PR_512MB 0x38 -#define HW_C6_PR_1GB 0x3a -#define HW_C6_PR_2GB 0x3c -#define HW_C6_PR_4GB 0x3e - -#define OS_CONSOLE_SIZE_MASK 0x00000003 -#define OS_CONSOLE_SIZE_4MB 0x00000001 - -#define OSi_GetArenaInfo() (*(OSArenaInfo*)HW_ARENA_INFO_BUF) -#define OSi_TRUNC(n, a) (((u32) (n)) & ~((a) - 1)) -#define OSi_ROUND(n, a) (((u32) (n) + (a) - 1) & ~((a) - 1)) - -#endif //POKEDIAMOND_CONSTS_H |