Create Scratchpad

This commit is contained in:
Jaby 2022-09-05 17:37:40 +02:00
parent acfa8dae92
commit 3d0dc45997
2 changed files with 7 additions and 6 deletions

View File

@ -0,0 +1,7 @@
#ifndef __JABYENGINE_SCRATCHPAD_HPP__
#define __JABYENGINE_SCRATCHPAD_HPP__
#include "../jabyengine_defines.h"
static __always_inline auto& ScratchPad = reinterpret_cast<uint8_t(&)[1024]>(*reinterpret_cast<uint8_t*>(0x1F800000));
#endif //!__JABYENGINE_SCRATCHPAD_HPP__

View File

@ -13,10 +13,4 @@
#else
#define __constexpr
#endif
//uint<real bits>_<used bits>b;
typedef uint8_t uint8_5b;
typedef uint8_t uint8_4b;
typedef uint8_t uint8_2b;
#endif //!__JABYENGINE_DEFINES__H