mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
IWRAM fix
This commit is contained in:
parent
a1e35a9ed1
commit
0fb9994131
|
@ -129,6 +129,15 @@ pub mod sram;
|
|||
|
||||
pub mod mgba;
|
||||
|
||||
extern "C" {
|
||||
/// This marks the end of the `.data` and `.bss` sections in IWRAM.
|
||||
///
|
||||
/// Memory in IWRAM _before_ this location is not free to use, you'll trash
|
||||
/// your globals and stuff. Memory here or after is freely available for use
|
||||
/// (careful that you don't run into your own stack of course).
|
||||
static __bss_end: u8;
|
||||
}
|
||||
|
||||
newtype! {
|
||||
/// A color on the GBA is an RGB 5.5.5 within a `u16`
|
||||
#[derive(PartialOrd, Ord, Hash)]
|
||||
|
|
Loading…
Reference in a new issue