pull/1/head
Able 2022-04-09 23:27:16 -05:00
parent a96bc8b896
commit c49572905f
Signed by: able
GPG Key ID: D164AF5F5700BE51
2 changed files with 7 additions and 3 deletions

View File

@ -1,17 +1,21 @@
#![no_std]
#![no_main]
use libwasm::driver::DriverExitCode;
use libwasm::{driver::DriverExitCode, get_input};
#[no_mangle]
fn start() -> i32 {
let rand;
let ret;
unsafe {
send_signal(PID(1), Signals::Quit);
rand = get_random();
ret = get_input();
}
rand as i32
// rand as i32
ret as i32
}
#[no_mangle]

View File

@ -9,7 +9,7 @@ pub mod syscalls;
pub use core::*;
extern "C" {
pub fn get_random() -> u32;
pub fn get_input() -> u32;
}