1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
Erin 2023-11-26 04:13:52 +01:00
parent 8c257e9216
commit 59e38db874
3 changed files with 1 additions and 13 deletions

View file

@ -2,17 +2,14 @@
#![deny(unsafe_op_in_unsafe_fn)] #![deny(unsafe_op_in_unsafe_fn)]
mod eca;
mod mem; mod mem;
use { use {
hbvm::{mem::Address, Vm, VmRunOk}, hbvm::{mem::Address, Vm, VmRunOk},
memmap2::Mmap, memmap2::Mmap,
std::{env::args, fs::File, io::Read, mem::MaybeUninit, process::exit}, std::{env::args, fs::File, mem::MaybeUninit, process::exit},
}; };
type RtVm = Vm<mem::HostMemory, 0>;
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
eprintln!("== HB×RT (Holey Bytes Experimental Runtime) v0.1 =="); eprintln!("== HB×RT (Holey Bytes Experimental Runtime) v0.1 ==");
eprintln!("[W] Currently supporting only flat images"); eprintln!("[W] Currently supporting only flat images");

Binary file not shown.

View file

@ -1,9 +0,0 @@
let hello = data::str("Hello, world!");
li8(r1, 6);
li8(r2, 10);
lra16(r3, r0, hello);
li8(r4, hello.len);
eca();
tx();