added safety notice
This commit is contained in:
parent
f832f6a04a
commit
2144c055d1
|
@ -1,5 +1,5 @@
|
|||
use {
|
||||
hbvm::{validate::validate, vm::Vm, RuntimeErrors},
|
||||
hbvm::{validate::validate, vm::Vm},
|
||||
std::io::{stdin, Read},
|
||||
};
|
||||
|
||||
|
|
|
@ -4,8 +4,12 @@
|
|||
|
||||
// # General safety notice:
|
||||
// - 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
|
||||
// - 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 value;
|
||||
|
|
Loading…
Reference in a new issue