diff options
Diffstat (limited to 'src/luma/emu/btl.rs')
-rw-r--r-- | src/luma/emu/btl.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/luma/emu/btl.rs b/src/luma/emu/btl.rs new file mode 100644 index 0000000..7bca72e --- /dev/null +++ b/src/luma/emu/btl.rs @@ -0,0 +1,12 @@ +// Copyright 2021-2023 Gabriel Jensen. + +use crate::luma::BTLSIZ; +use crate::luma::emu::Emu; + +use std::slice; + +impl Emu { + pub fn btl<'a>(&mut self) -> &'a mut [u8] { + return unsafe { slice::from_raw_parts_mut(self.mem.offset(0x00000000), BTLSIZ) }; + } +} |