1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
Erin 2023-07-22 02:27:03 +02:00
parent 47323e140c
commit 3892a719eb

View file

@ -67,8 +67,9 @@ impl Assembler {
// //
// Newly created `UN` (as UNreachable) was chosen as // Newly created `UN` (as UNreachable) was chosen as
// - It was a good idea to add some equivalent to `ud2` anyways // - It was a good idea to add some equivalent to `ud2` anyways
// - Its zeroes // - It was chosen to be zero
// - What if you somehow reached that code, it will appropriately bail :) // - What if you somehow reached that code, it will appropriately bail :)
// - (yes, originally NOP was considered)
// //
// Why 12 bytes? That's the size of largest instruction parameter part. // Why 12 bytes? That's the size of largest instruction parameter part.
self.buf.extend([0; 12]); self.buf.extend([0; 12]);