added safety notice

This commit is contained in:
Erin 2023-06-10 16:46:04 +02:00 committed by ondra05
parent f832f6a04a
commit 2144c055d1
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,5 @@
use { use {
hbvm::{validate::validate, vm::Vm, RuntimeErrors}, hbvm::{validate::validate, vm::Vm},
std::io::{stdin, Read}, std::io::{stdin, Read},
}; };

View file

@ -4,8 +4,12 @@
// # General safety notice: // # General safety notice:
// - Validation has to assure there is 60 registers (r0 - r59) // - Validation has to assure there is 60 registers (r0 - r59)
// - Instructions has to be valid as specified (values and sizes) // - Instructions have to be valid as specified (values and sizes)
// - Mapped pages should be at least 8 KiB // - Mapped pages should be at least 8 KiB
// - Yes, I am aware of the UB when jumping in-mid of instruction where
// the read byte corresponds to an instruction whose lenght exceets the
// program size. If you are (rightfully) worried about the UB, for now just
// append your program with 11 zeroes.
mod mem; mod mem;
mod value; mod value;