mos_hardware/mega65/libc/
mod.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4
5//! Bindings for the MEGA65-libc library
6//!
7//! This exposes the [mega65-libc](https://github.com/MEGA65/mega65-libc) library
8//! to Rust via automatically generated bindings.
9//! While all required 65c02 opcodes are present in llvm-mos, they have not yet
10//! made it into rust-mos. For this reason, routines in `fileio.h` are currently
11//! unavailable.
12//!
13//! Example:
14//! ~~~
15//! unsafe {
16//!     mega65::libc::mega65_fast();
17//!     let address = mega65::libc::getscreenaddr();
18//! }
19//! ~~~
20include!("bindings.rs");