From 8dc1420b8a0c44243258ac551cb059a912331219 Mon Sep 17 00:00:00 2001 From: Able Date: Tue, 19 Apr 2022 02:37:55 -0500 Subject: [PATCH] update --- aos_wasm_stress_test/aos_wasm_stress_test.wasm | Bin 670 -> 0 bytes aos_wasm_stress_test/src/main.rs | 10 ++++++++-- axel/src/main.rs | 5 ++++- axel/src/mouse.axel | 3 ++- libwasm/src/lib.rs | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) delete mode 100755 aos_wasm_stress_test/aos_wasm_stress_test.wasm diff --git a/aos_wasm_stress_test/aos_wasm_stress_test.wasm b/aos_wasm_stress_test/aos_wasm_stress_test.wasm deleted file mode 100755 index 0f4de4c27e5fbf45991efba66e040a2d4e58992b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 670 zcmY*Xv5wO~5S`hz6Q4IHe9{R5LSl6w(UArn5*2$jCB3s3FNcHeM7t)ChBXHT2no^f z6MO{)pTH*|YC42yn00a}tTcXap58p$+5zoq1OU99OquuSr$B`srT|m!JrRZs`|D!DqGD>!CAjDEEvnn`|w_gEyk#A9}y zfW$EYSL1o_lq`D}UIF6af1zv}$`sy*v1DQXkf0A`7x^Rkk0wNudG>k}wht$7es%Bv zeE9t1H;5~sK86ocm( i32 { unsafe { send_signal(PID(1), Signals::Quit); rand = get_random(); - loop { - ret = get_input(); + ret = 1; + let x = b"Hi there"; + for i in x { + print_char(*i as i64); } } @@ -35,3 +37,7 @@ use { }; mod panic; + +extern "C" { + fn print_char(c: i64); +} diff --git a/axel/src/main.rs b/axel/src/main.rs index 4cc5d2d..987a4fa 100644 --- a/axel/src/main.rs +++ b/axel/src/main.rs @@ -4,6 +4,9 @@ pub fn main() { let p = parse(include_str!("mouse.axel").to_string()); for node in p { - println!("{:?}", node); + println!("{:?}", node.vals); + for funct in node.functs { + println!("{:?}", funct); + } } } diff --git a/axel/src/mouse.axel b/axel/src/mouse.axel index c0c1fde..056f484 100644 --- a/axel/src/mouse.axel +++ b/axel/src/mouse.axel @@ -3,9 +3,10 @@ val= x: 1000 y: 200 buttons: true + ver: 1.0.1 fn| sub: (Num,Num)->(Num); floatify: (Num,Num)->(Float); able: (None)->(None); foo: (None)->(Num); -} +} \ No newline at end of file diff --git a/libwasm/src/lib.rs b/libwasm/src/lib.rs index 4faa490..8393a31 100644 --- a/libwasm/src/lib.rs +++ b/libwasm/src/lib.rs @@ -11,5 +11,5 @@ pub use core::*; extern "C" { pub fn get_random() -> u32; pub fn get_input() -> u32; - + pub fn print_clever_hack(chars8: u64); }