This commit is contained in:
Erin 2023-07-22 02:29:05 +02:00 committed by ondra05
parent db2e5de20b
commit 1f54fc1e77

View file

@ -58,8 +58,8 @@ impl Assembler {
/// ///
/// There was an issue. You cannot statically check register values and /// There was an issue. You cannot statically check register values and
/// `JAL` instruction could hop at the end of program to some byte, which /// `JAL` instruction could hop at the end of program to some byte, which
/// will be interpreted as opcode and VM in attempt to decode the instruction /// will be interpreted as some valid opcode and VM in attempt to decode
/// performed out-of-bounds read which leads to undefined behaviour. /// the instruction performed out-of-bounds read which leads to undefined behaviour.
/// ///
/// Several options were considered to overcome this, but inserting some data at /// Several options were considered to overcome this, but inserting some data at
/// program's end which when executed would lead to undesired behaviour, though /// program's end which when executed would lead to undesired behaviour, though