1#![cfg_attr(target_os = "none", no_std)]
2#![cfg_attr(target_os = "none", no_main)]
3
4extern crate monotron_app;
5
6use monotron_app::prelude::*;
7use monotron_app::Host;
8
9#[cfg(not(target_os = "none"))]
10pub fn main() {
11 monotron_app::Host::init();
12 let r = monotron_main();
13 monotron_app::Host::deinit();
14 std::process::exit(r);
15}
16
17#[no_mangle]
18pub extern "C" fn monotron_main() -> i32 {
19 Host::puts(b"ASCII Test! \x80\n");
20 for _ in 0..5 {
22 write!(Host, "Hello, \u{001B}RRust\u{001B}W!\n").unwrap();
23 for _ in 0..60 {
24 Host::wfvbi();
25 }
26 }
27 0
28}