mos-alloc
Allocator for mos-unknown-none target (https://github.com/mrk-its/rust/tree/mos_target)
and number of utilities for setting max heap size / checking free / used memory
API Docs
Example
Full source code in examples/heap.rs.
extern crate alloc;
extern crate mos_alloc;
use ;
// ..
Running examples
The easiest way is to use provided devcontainer.json configuration for vscode:
- Configure Visual Studio Code with
Remote - Containersextension - Open this project inside devcontainer
- on terminal run:
cargo build --example kbdinfo --release - resulting atari executable (xex) is
target/mos-a800xl-none/release/examples/kbdinfo
License
All source code (including code snippets) is licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.